Queue: Use shift() instead of splice

This commit is contained in:
Tanish Manku committed 2024-12-11 16:19:42 -08:00
1 parent b003ba472a
commit 762d02e40e
1 file changed
+1 -1
+1 -1
View File
@@ -117,7 +117,7 @@ class Queue {
this._subscribers[queueName].forEach((subscribeHandler) =>
subscribeHandler(this._queues[queueName][0]),
);
this._queues[queueName].splice(0, 1);
this._queues[queueName].shift();
}
}
}