Skip to content

Commit b72d198

Browse files
increase redis timeout
1 parent 916f7c8 commit b72d198

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react_on_rails_pro/spec/dummy/client/app/utils/redisReceiver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { createClient, RedisClientType } from 'redis';
22

3+
const REDIS_READ_TIMEOUT = 10000;
4+
35
/**
46
* Redis xRead result message structure
57
*/
@@ -292,7 +294,7 @@ export function listenToRequestData(requestId: string): RequestListener {
292294
);
293295
// Keep the pending promise in the dictionary with the error state
294296
}
295-
}, 8000);
297+
}, REDIS_READ_TIMEOUT);
296298

297299
// Store the promise and its controllers
298300
if (resolvePromise && rejectPromise) {

0 commit comments

Comments
 (0)