Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed Mar 18, 2024
1 parent 4245b33 commit fee56ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/core/shared/src/main/scala/Trace.scala
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ object Trace {
case (child, release) =>
new (Kleisli[F, Span[F], *] ~> Kleisli[F, Span[F], *]) {
def apply[A](fa: Kleisli[F, Span[F], A]): Kleisli[F, Span[F], A] =
fa.local((_: Span[F]) => child).mapF(_.onError { case e => child.attachError(e) })
fa.local((_: Span[F]) => child).mapF(_.onError(e => child.attachError(e)))
} -> release.andThen(Kleisli.liftF[F, Span[F], Unit](_))
}
}
Expand Down Expand Up @@ -224,7 +224,7 @@ object Trace {
new (Kleisli[F, E, *] ~> Kleisli[F, E, *]) {
def apply[A](fa: Kleisli[F, E, A]): Kleisli[F, E, A] =
fa.local((_: E) => g(e, child))
.mapF(_.onError { case e => child.attachError(e) })
.mapF(_.onError(e => child.attachError(e)))
} -> release.andThen(Kleisli.liftF[F, E, Unit](_))
}
)
Expand Down
10 changes: 5 additions & 5 deletions modules/xray/src/test/scala/XRaySuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class XRaySuite extends ScalaCheckSuite {
assertEquals(
XRaySpan.parseHeader(noParent),
Some(
XRaySpan.XRayHeader(rootId, None, true)
XRaySpan.XRayHeader(rootId, None, sampled = true)
)
)

assertEquals(
XRaySpan.parseHeader(parent),
Some(
XRaySpan.XRayHeader(rootId, Some(parentId), true)
XRaySpan.XRayHeader(rootId, Some(parentId), sampled = true)
)
)

Expand All @@ -56,9 +56,9 @@ class XRaySuite extends ScalaCheckSuite {

test("header encoding") {

assertEquals(XRaySpan.encodeHeader(rootId, None, true), noParent)
assertEquals(XRaySpan.encodeHeader(rootId, Some(parentId), true), parent)
assertEquals(XRaySpan.encodeHeader(rootId, None, false), notSampled)
assertEquals(XRaySpan.encodeHeader(rootId, None, sampled = true), noParent)
assertEquals(XRaySpan.encodeHeader(rootId, Some(parentId), sampled = true), parent)
assertEquals(XRaySpan.encodeHeader(rootId, None, sampled = false), notSampled)
}

property("header encoding/parsing round-trip") {
Expand Down

0 comments on commit fee56ed

Please sign in to comment.