Skip to content

Commit

Permalink
fix: create GatewayRequestStore
Browse files Browse the repository at this point in the history
Creates the GatewayRequestStore and makes it available in the GrpcResponseWriter and the GrpcToLogStreamGateway.
  • Loading branch information
remcowesterhoud committed May 10, 2022
1 parent 4d7b440 commit 879ecbc
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,18 @@ public static ZeebeTestEngine create(final int port) {
new SubscriptionCommandSenderFactory(
logStream.newLogStreamRecordWriter().join(), partitionId);

final GatewayRequestStore gatewayRequestStore = new GatewayRequestStore();
final GrpcToLogStreamGateway gateway =
new GrpcToLogStreamGateway(
logStream.newLogStreamRecordWriter().join(), partitionId, partitionCount, port);
logStream.newLogStreamRecordWriter().join(),
partitionId,
partitionCount,
port,
gatewayRequestStore);
final Server grpcServer = ServerBuilder.forPort(port).addService(gateway).build();

final GrpcResponseWriter grpcResponseWriter = new GrpcResponseWriter(gateway);
final GrpcResponseWriter grpcResponseWriter =
new GrpcResponseWriter(gateway, gatewayRequestStore);

final ZeebeDb<ZbColumnFamilies> zeebeDb = createDatabase();

Expand Down

0 comments on commit 879ecbc

Please sign in to comment.