diff --git a/logging/workerThread/logFileWorker.js b/logging/workerThread/logFileWorker.js deleted file mode 100644 index ed246f62563f89645f95fe13c715a81b60aa756b..0000000000000000000000000000000000000000 --- a/logging/workerThread/logFileWorker.js +++ /dev/null @@ -1,21 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// Copyright © 2022 xx foundation // -// // -// Use of this source code is governed by a license that can be found in the // -// LICENSE file. // -//////////////////////////////////////////////////////////////////////////////// - -importScripts('wasm_exec.js'); - -const isReady = new Promise((resolve) => { - self.onWasmInitialized = resolve; -}); - -const go = new Go(); -const binPath = 'xxdk-logFileWorker.wasm' -WebAssembly.instantiateStreaming(fetch(binPath), go.importObject).then(async (result) => { - go.run(result.instance); - await isReady; -}).catch((err) => { - console.error(err); -}); \ No newline at end of file