Add retry connection to redis. Clean up up redis/session logic

This commit is contained in:
Brian Cao 2022-09-05 22:47:45 -07:00
parent 81ca9c9665
commit 99914d6e98
5 changed files with 16 additions and 9 deletions

View file

@ -33,6 +33,8 @@ function getClient() {
global[KAFKA] = client;
}
log('Kafka initialized');
return client;
}
@ -44,6 +46,8 @@ async function getProducer() {
global[KAFKA_PRODUCER] = producer;
}
log('Kafka producer initialized');
return producer;
}