diff options
Diffstat (limited to 'kamon-core')
-rw-r--r-- | kamon-core/src/main/scala/kamon/trace/TraceContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/trace/TraceContext.scala b/kamon-core/src/main/scala/kamon/trace/TraceContext.scala index 85b7396f..1bd72089 100644 --- a/kamon-core/src/main/scala/kamon/trace/TraceContext.scala +++ b/kamon-core/src/main/scala/kamon/trace/TraceContext.scala @@ -60,7 +60,7 @@ trait TraceContext { def withNewAsyncSegment[T](segmentName: String, category: String, library: String)(code: ⇒ Future[T]): Future[T] = { val segment = startSegment(segmentName, category, library) val result = code - code.onComplete(_ ⇒ segment.finish())(SameThreadExecutionContext) + result.onComplete(_ ⇒ segment.finish())(SameThreadExecutionContext) result } |