Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Nov 22, 2023
1 parent 31e99da commit fb53846
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.18, 2.13.10, 3.3.0]
scala: [2.12.18, 2.13.12, 3.3.1]
java: [graal_graalvm@17, temurin@8]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
cache: sbt

- name: Check formatting
if: matrix.scala == '2.13.10'
run: sbt ++2.13.10 fmtCheck
if: matrix.scala == '2.13.12'
run: sbt ++2.13.12 fmtCheck

- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
Expand All @@ -65,10 +65,10 @@ jobs:

- name: Check doc generation
if: ${{ github.event_name == 'pull_request' }}
run: sbt ++2.13.10 doc
run: sbt ++2.13.12 doc

- name: zio-http-shaded Tests
if: matrix.scala == '2.13.10'
if: matrix.scala == '2.13.12'
env:
PUBLISH_SHADED: true
run: sbt '++ ${{ matrix.scala }}' zioHttpShadedTests/test
Expand All @@ -89,7 +89,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [graal_graalvm@17]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -126,22 +126,22 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.10)
- name: Download target directories (2.13.12)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-2.13.10-${{ matrix.java }}
name: target-${{ matrix.os }}-2.13.12-${{ matrix.java }}

- name: Inflate target directories (2.13.10)
- name: Inflate target directories (2.13.12)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.3.0)
- name: Download target directories (3.3.1)
uses: actions/download-artifact@v3
with:
name: target-${{ matrix.os }}-3.3.0-${{ matrix.java }}
name: target-${{ matrix.os }}-3.3.1-${{ matrix.java }}

- name: Inflate target directories (3.3.0)
- name: Inflate target directories (3.3.1)
run: |
tar xf targets.tar
rm targets.tar
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.13.10]
scala: [2.13.12]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down
9 changes: 5 additions & 4 deletions zio-http/src/main/scala/zio/http/netty/EventLoopGroups.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ object EventLoopGroups {
def make(config: Config, eventLoopGroup: UIO[EventLoopGroup])(implicit
trace: Trace,
): ZIO[Scope, Nothing, EventLoopGroup] =
ZIO.acquireRelease(eventLoopGroup)(ev =>
ZIO.acquireRelease(eventLoopGroup) { ev =>
val future = ev.shutdownGracefully(config.shutdownQuietPeriod, config.shutdownTimeOut, config.shutdownTimeUnit)
NettyFutureExecutor
.executed(ev.shutdownGracefully(config.shutdownQuietPeriod, config.shutdownTimeOut, config.shutdownTimeUnit))
.orDie,
)
.executed(future)
.orDie
}

def epoll(config: Config)(implicit trace: Trace): ZIO[Scope, Nothing, EventLoopGroup] =
make(config, ZIO.succeed(new EpollEventLoopGroup(config.nThreads)))
Expand Down

0 comments on commit fb53846

Please sign in to comment.