Skip to content

Commit 2cf0f02

Browse files
committed
Added variable as dynamic to fetch from env
1 parent d8068c8 commit 2cf0f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module.exports = {
77
NAME: 'db.ifxpgmigrate.sync',
88
PARTITION: 0
99
},
10-
RETRY_COUNTER: 3,
11-
KAFKA_REPOST_COUNT: 5,
10+
RETRY_COUNTER: parseInt(process.env.RETRY_COUNTER || 3, 10),
11+
KAFKA_REPOST_COUNT: parseInt(process.env.KAFKA_REPOST_COUNT || 5, 10),
1212
KAFKA_URL: process.env.KAFKA_URL,
1313
KAFKA_GROUP_ID: process.env.KAFKA_GROUP_ID || 'ifx-pg-consumer',
1414
KAFKA_CLIENT_CERT: process.env.KAFKA_CLIENT_CERT ? process.env.KAFKA_CLIENT_CERT.replace('\\n', '\n') : null,

0 commit comments

Comments
 (0)