tweak updates for lastSlotReceivedMutex
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user