Skip to content

Commit

Permalink
Merge pull request #800 from typelevel/update/sbt-typelevel-0.7.4
Browse files Browse the repository at this point in the history
Update sbt-typelevel, ... to 0.7.4
  • Loading branch information
iRevive authored Oct 11, 2024
2 parents dd085c8 + cfeeb8a commit 2543ee2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -116,8 +115,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -231,8 +229,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down Expand Up @@ -292,8 +289,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt
uses: sbt/setup-sbt@v1

- name: Checkout current branch (full)
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.7.3")
addSbtPlugin("org.typelevel" % "sbt-typelevel-scalafix" % "0.7.3")
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.7.3")
addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.7.4")
addSbtPlugin("org.typelevel" % "sbt-typelevel-scalafix" % "0.7.4")
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.7.4")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private[otlp] object GrpcCodecs {
}
}

_.through(lpmDecoder).through(decompress).through(entityDecoder)
s => s.through(lpmDecoder).through(decompress).through(entityDecoder)
}

def encode[F[_]: RaiseThrowable: Compression, A](
Expand All @@ -63,12 +63,13 @@ private[otlp] object GrpcCodecs {
val lpmEncoder: Pipe[F, LengthPrefixedMessage, Byte] =
StreamEncoder.once(LengthPrefixedMessage.codec).toPipeByte

_.through(entityEncoder)
.through(compression)
.chunks
.foldMonoid
.map(chunks => LengthPrefixedMessage(gzip, chunks.toByteVector))
.through(lpmEncoder)
s =>
s.through(entityEncoder)
.through(compression)
.chunks
.foldMonoid
.map(chunks => LengthPrefixedMessage(gzip, chunks.toByteVector))
.through(lpmEncoder)
}

}

0 comments on commit 2543ee2

Please sign in to comment.