Skip to content

Commit

Permalink
Merge pull request #1241 from camunda/korthout-compile-snapshot
Browse files Browse the repository at this point in the history
Remove all references of actor scheduler from logstream
  • Loading branch information
korthout authored Oct 3, 2024
2 parents 22bef5d + 7048b77 commit fada949
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static ZeebeTestEngine create(final int port, final Consumer<Intent> req
final ActorScheduler scheduler = createAndStartActorScheduler(clock);

final InMemoryLogStorage logStorage = new InMemoryLogStorage();
final LogStream logStream = createLogStream(logStorage, scheduler, partitionId, clock);
final LogStream logStream = createLogStream(logStorage, partitionId, clock);

final CommandWriter commandWriter = new CommandWriter(logStream.newLogStreamWriter());
final CommandSender commandSender = new CommandSender(commandWriter);
Expand Down Expand Up @@ -124,14 +124,10 @@ private static ActorScheduler createAndStartActorScheduler(final ActorClock cloc
}

private static LogStream createLogStream(
final LogStorage logStorage,
final ActorSchedulingService scheduler,
final int partitionId,
final ActorClock clock) {
final LogStorage logStorage, final int partitionId, final ActorClock clock) {
return LogStream.builder()
.withPartitionId(partitionId)
.withLogStorage(logStorage)
.withActorSchedulingService(scheduler)
.withClock(clock)
.build();
}
Expand Down

0 comments on commit fada949

Please sign in to comment.