mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2024-12-04 09:50:17 +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();
|
||||
},
|
||||
|
||||
callService: (
|
||||
callService: async (
|
||||
serviceId: string,
|
||||
functionName: string,
|
||||
args: JSONArray | JSONObject,
|
||||
@ -139,7 +139,7 @@ const toExpose = {
|
||||
throw new Error(`service with id=${serviceId} not found`);
|
||||
}
|
||||
|
||||
return srv.call(functionName, args, callParams);
|
||||
return await srv.call(functionName, args, callParams);
|
||||
},
|
||||
|
||||
onLogMessage() {
|
||||
|
Loading…
Reference in New Issue
Block a user