This commit is contained in:
DieMyst
2021-06-03 17:50:06 +03:00
parent cf8a45cb0b
commit 7152e9220a
2 changed files with 9 additions and 12 deletions

View File

@ -9,11 +9,8 @@ func viaArr(node_id: string, viaAr: []string) -> Info:
<- p
func viaStream(node_id: string, viaStr: []string) -> Info:
str: *string
for v <- viaStr:
str <- CustomId.id(v)
on node_id via str:
func viaStream(node_id: string, viaStr: *string) -> Info:
on node_id via viaStr:
p <- Peer.identify()
<- p

View File

@ -132,18 +132,18 @@ export async function viaStream(client: FluenceClient, node_id: string, viaStr:
(call %init_peer_id% ("getDataSrv" "-relay-") [] -relay-)
(call %init_peer_id% ("getDataSrv" "node_id") [] node_id)
)
(call %init_peer_id% ("getDataSrv" "viaStr") [] viaStr)
(call %init_peer_id% ("getDataSrv" "viaStr") [] viaStr-iter)
)
(fold viaStr v
(fold viaStr-iter viaStr-item
(seq
(call %init_peer_id% ("cid" "id") [v] $str)
(next v)
(call %init_peer_id% ("op" "identity") [viaStr-item] $viaStr)
(next viaStr-item)
)
)
)
(call -relay- ("op" "identity") [])
)
(fold $str -via-peer-
(fold $viaStr -via-peer-
(seq
(call -via-peer- ("op" "identity") [])
(next -via-peer-)
@ -155,7 +155,7 @@ export async function viaStream(client: FluenceClient, node_id: string, viaStr:
(seq
(seq
(seq
(fold $str -via-peer-
(fold $viaStr -via-peer-
(seq
(call -via-peer- ("op" "identity") [])
(next -via-peer-)
@ -169,7 +169,7 @@ export async function viaStream(client: FluenceClient, node_id: string, viaStr:
)
)
)
(fold $str -via-peer-
(fold $viaStr -via-peer-
(seq
(call -via-peer- ("op" "identity") [])
(next -via-peer-)