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 = {