tweak updates for lastSlotReceivedMutex

This commit is contained in:
Chris Heaney
2023-11-20 18:47:11 -05:00
parent b4bdbd617f
commit e7bd57ad8c

View File

@@ -199,10 +199,6 @@ const main = async () => {
}); });
setInterval(async () => { setInterval(async () => {
if (lastSlotReceivedMutex.isLocked()) {
return;
}
await lastSlotReceivedMutex.runExclusive(async () => { await lastSlotReceivedMutex.runExclusive(async () => {
lastSlotReceived = bulkAccountLoader.getSlot(); lastSlotReceived = bulkAccountLoader.getSlot();
}); });