Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed Sep 2, 2024
1 parent 5e5b2a5 commit 980333f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ object Behaviors {
*/
def withTimersSetup[T](
factory: pekko.japi.function.Function2[TimerScheduler[T], ActorContext[T], Behavior[T]]): Behavior[T] =
setup(ctx => TimerSchedulerImpl.withTimers(timers => factory.apply(timers, ctx)))
setup(ctx => TimerSchedulerImpl.wrapWithTimers(timer => factory.apply(timer, ctx.asJava))(ctx.asScala))

/**
* Per message MDC (Mapped Diagnostic Context) logging.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ object Behaviors {
*/
def withTimersSetup[T](factory: (TimerScheduler[T], ActorContext[T]) => Behavior[T]): Behavior[T] =
setup(ctx => {
TimerSchedulerImpl.withTimers(factory(_, ctx))
TimerSchedulerImpl.wrapWithTimers(factory(_, ctx))(ctx)
})

/**
Expand Down

0 comments on commit 980333f

Please sign in to comment.