Skip to content

Commit d4aedf0

Browse files
committed
fix integration mode under concurrent calls
1 parent 9ffb8b2 commit d4aedf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redis-wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ const _getIntegrationMode = async () => {
553553

554554
const getIntegrationMode = async () => {
555555
if (integrationMode === null) {
556-
integrationMode = await _getIntegrationMode();
556+
integrationMode = _getIntegrationMode();
557557
}
558-
return integrationMode;
558+
return await integrationMode;
559559
};
560560

561561
module.exports = {

0 commit comments

Comments
 (0)