We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916f7c8 commit b72d198Copy full SHA for b72d198
react_on_rails_pro/spec/dummy/client/app/utils/redisReceiver.ts
@@ -1,5 +1,7 @@
1
import { createClient, RedisClientType } from 'redis';
2
3
+const REDIS_READ_TIMEOUT = 10000;
4
+
5
/**
6
* Redis xRead result message structure
7
*/
@@ -292,7 +294,7 @@ export function listenToRequestData(requestId: string): RequestListener {
292
294
);
293
295
// Keep the pending promise in the dictionary with the error state
296
}
- }, 8000);
297
+ }, REDIS_READ_TIMEOUT);
298
299
// Store the promise and its controllers
300
if (resolvePromise && rejectPromise) {
0 commit comments