fix compilation

This commit is contained in:
DieMyst
2021-05-05 09:54:55 +03:00
parent 873cd537b2
commit 851870b4af
2 changed files with 14 additions and 12 deletions

View File

@ -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()
@ -224,6 +224,7 @@ export async function doStuff(client: FluenceClient, a: string, b: string, c: bo
(seq
(seq
(seq
(seq
(seq
(seq
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
@ -239,9 +240,11 @@ export async function doStuff(client: FluenceClient, a: string, b: string, c: bo
)
(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);

View File

@ -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")
}