Skip to content

Commit

Permalink
Fix replaying detection in logger.ts (#411)
Browse files Browse the repository at this point in the history
isReplaying isn't always accurate as it transitions at the next journal
entry. What we care about is whether the next entry will replay (if not,
we should log)
  • Loading branch information
jackkleeman authored Aug 7, 2024
1 parent 1750275 commit 777f760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/restate-sdk/src/state_machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class StateMachine implements RestateStreamConsumer {
logger,
LogSource.USER,
loggerContext,
this.journal.isReplaying.bind(this.journal)
this.journal.nextEntryWillBeReplayed.bind(this.journal)
),
handlerKind,
invocation.userKey,
Expand Down

0 comments on commit 777f760

Please sign in to comment.