Skip to content

Commit 27529ea

Browse files
author
Gerald Baulig
committed
fix(kafka): add kafka response awaiting timeout to config
1 parent ec55945 commit 27529ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cfg/config.json

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"provider": "kafka",
132132
"groupId": "restore-fulfillment-srv",
133133
"latestOffset": false,
134+
"timeout": 15000,
134135
"kafka": {
135136
"clientId": "restore-fulfillment-srv",
136137
"brokers": [

src/services/fulfillment.ts

+1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ export class FulfillmentService
277277
)
278278

279279
this.tech_user = cfg?.get('authorization:techUser');
280+
this.kafka_timeout = cfg.get('events:kafka:timeout') ?? 5000;
280281
}
281282

282283
protected async aggregateProductBundles(

0 commit comments

Comments
 (0)