You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbgMaintenance(`Setting maintenance command timeout to ${ms}`);
84
77
// Prevent possible api misuse
85
-
if(this.#maintenanceCommandTimeout ===ms)return;
78
+
if(this.#maintenanceCommandTimeout ===ms){
79
+
dbgMaintenance(`Queue already set maintenanceCommandTimeout to ${ms}, skipping`);
80
+
return;
81
+
};
86
82
83
+
dbgMaintenance(`Setting maintenance command timeout to ${ms}`);
87
84
this.#maintenanceCommandTimeout =ms;
88
85
86
+
if(this.#maintenanceCommandTimeout ===undefined){
87
+
dbgMaintenance(`Queue will keep maintenanceCommandTimeout for exisitng commands, just to be on the safe side. New commands will receive normal timeouts`);
88
+
return;
89
+
}
90
+
89
91
letcounter=0;
90
92
consttotal=this.#toWrite.length;
91
93
@@ -96,20 +98,16 @@ export default class RedisCommandsQueue {
0 commit comments