From 47767b01e8d2d6252143e6c278782b764c0c1dde Mon Sep 17 00:00:00 2001 From: Sergiy Lavrynenko Date: Tue, 24 Jan 2023 18:46:09 +0000 Subject: [PATCH] ticket-1413 SNB does multiple attempts to download S-Chain descriptions --- npms/skale-observer/observer_worker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npms/skale-observer/observer_worker.js b/npms/skale-observer/observer_worker.js index 37bf7f086..e4bf14c0d 100644 --- a/npms/skale-observer/observer_worker.js +++ b/npms/skale-observer/observer_worker.js @@ -42,6 +42,8 @@ parentPort.on( "message", jo => { return; } ); +const sleep = ( milliseconds ) => { return new Promise( resolve => setTimeout( resolve, milliseconds ) ); }; + function doSendMessage( type, endpoint, worker_uuid, data ) { const jo = network_layer.socket_received_data_reverse_marshall( data ); const joSend = {