Skip to content

Commit

Permalink
fix: add missing properties
Browse files Browse the repository at this point in the history
 * Add log name
 * Add node id
  • Loading branch information
Zelldon committed Jan 21, 2022
1 parent 4dd5388 commit f4de12b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import java.util.concurrent.CompletableFuture

typealias PartitionId = Int

private const val LOGSTREAM_NAME = "EZE-LOG"

object EngineFactory {

private val partitionId: PartitionId = 1
Expand Down Expand Up @@ -123,6 +125,7 @@ object EngineFactory {
.zeebeDb(database)
.eventApplierFactory { EventAppliers(it) }
.commandResponseWriter(grpcResponseWriter)
.nodeId(0)
.streamProcessorFactory { context ->
EngineProcessors.createEngineProcessors(
context,
Expand Down Expand Up @@ -152,6 +155,7 @@ object EngineFactory {
val builder = LogStream.builder()
.withPartitionId(partitionId)
.withLogStorage(logStorage)
.withLogName(LOGSTREAM_NAME)
.withActorSchedulingService(scheduler)

val theFuture = CompletableFuture<LogStream>()
Expand Down

0 comments on commit f4de12b

Please sign in to comment.