You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
use setImmediate
instead of queueMicrotask
(to improve performance) (#2516)
This commit is contained in:
@@ -291,7 +291,7 @@ export default class RedisSocket extends EventEmitter {
|
||||
this.#socket.cork();
|
||||
this.#isCorked = true;
|
||||
|
||||
queueMicrotask(() => {
|
||||
setImmediate(() => {
|
||||
this.#socket?.uncork();
|
||||
this.#isCorked = false;
|
||||
});
|
||||
|
Reference in New Issue
Block a user