mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2024-12-04 18:00:18 +00:00
use explicit async/await in marine_worker
This commit is contained in:
parent
381ab6adaf
commit
14a88a99aa
@ -127,7 +127,7 @@ const toExpose = {
|
|||||||
onLogMessage.complete();
|
onLogMessage.complete();
|
||||||
},
|
},
|
||||||
|
|
||||||
callService: (
|
callService: async (
|
||||||
serviceId: string,
|
serviceId: string,
|
||||||
functionName: string,
|
functionName: string,
|
||||||
args: JSONArray | JSONObject,
|
args: JSONArray | JSONObject,
|
||||||
@ -139,7 +139,7 @@ const toExpose = {
|
|||||||
throw new Error(`service with id=${serviceId} not found`);
|
throw new Error(`service with id=${serviceId} not found`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return srv.call(functionName, args, callParams);
|
return await srv.call(functionName, args, callParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLogMessage() {
|
onLogMessage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user