mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-28 22:12:02 +00:00
fix compilation
This commit is contained in:
@ -207,7 +207,7 @@ export async function testFunc(client: FluenceClient): Promise<string> {
|
||||
|
||||
|
||||
|
||||
export async function doStuff(client: FluenceClient, a: string, b: string, c: boolean, d: boolean, e: string[], g: string[]): Promise<string[]> {
|
||||
export async function doStuff(client: FluenceClient, a: string, b: string, c: boolean, d: boolean, e: string[], g: string[], str: string): Promise<string[]> {
|
||||
let request;
|
||||
const promise = new Promise<string[]>((resolve, reject) => {
|
||||
request = new RequestFlowBuilder()
|
||||
@ -226,22 +226,25 @@ export async function doStuff(client: FluenceClient, a: string, b: string, c: bo
|
||||
(seq
|
||||
(seq
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getDataSrv" "a") [] a)
|
||||
(seq
|
||||
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
|
||||
(call %init_peer_id% ("getDataSrv" "a") [] a)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "b") [] b)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "b") [] b)
|
||||
(call %init_peer_id% ("getDataSrv" "c") [] c)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "c") [] c)
|
||||
(call %init_peer_id% ("getDataSrv" "d") [] d)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "d") [] d)
|
||||
(call %init_peer_id% ("getDataSrv" "e") [] e)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "e") [] e)
|
||||
(call %init_peer_id% ("getDataSrv" "g") [] g)
|
||||
)
|
||||
(call %init_peer_id% ("getDataSrv" "g") [] g)
|
||||
(call %init_peer_id% ("getDataSrv" "str") [] str)
|
||||
)
|
||||
(par
|
||||
(par
|
||||
(call %init_peer_id% ("test-service-id" "str") [] $stream)
|
||||
(call %init_peer_id% ("some-id" "t") [str] $stream)
|
||||
(call %init_peer_id% ("println-service-id" "print") [a])
|
||||
)
|
||||
(seq
|
||||
@ -329,6 +332,7 @@ h.on('getDataSrv', 'c', () => {return c;});
|
||||
h.on('getDataSrv', 'd', () => {return d;});
|
||||
h.on('getDataSrv', 'e', () => {return e;});
|
||||
h.on('getDataSrv', 'g', () => {return g;});
|
||||
h.on('getDataSrv', 'str', () => {return str;});
|
||||
h.onEvent('callbackSrv', 'response', (args) => {
|
||||
const [res] = args;
|
||||
resolve(res);
|
||||
|
@ -8,7 +8,5 @@ export async function complexCall(client: FluenceClient) {
|
||||
return args[0]
|
||||
})
|
||||
|
||||
let peer2 = testNet[0]
|
||||
|
||||
return await doStuff(client, client.relayPeerId!, client.selfPeerId, true, true, ["1", "2"], ["3", "4"])
|
||||
return await doStuff(client, client.relayPeerId!, client.selfPeerId, true, true, ["1", "2"], ["3", "4"], "some str")
|
||||
}
|
||||
|
Reference in New Issue
Block a user