Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 3d9fa76

Browse files
author
Sachin Maheshwari
committed
ci/cd
1 parent 8566fc3 commit 3d9fa76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app.js

+2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ async function main() {
1818
const redis_url = config.REDIS_URL
1919
let offset = config.USER_RECORD_OFFSET
2020
let client
21+
2122
if (redis_url) {
2223
client = redis.createClient(redis_url)
2324
} else {
2425
client = redis.createClient({ host: config.REDIS_HOST, port: config.REDIS_PORT, password: config.REDIS_PASSWORD, user: config.REDIS_USER })
2526
}
27+
2628
const offsetFromRedis = await promisify(client.get).bind(client)(config.OFFSET_REDIS_KEY)
2729
if (offsetFromRedis) {
2830
offset = offsetFromRedis

0 commit comments

Comments
 (0)