mirror of
https://github.com/fluencelabs/examples
synced 2024-12-05 03:30:17 +00:00
add tester
This commit is contained in:
parent
26e8938dc5
commit
af97d5ab4b
@ -8,28 +8,36 @@ import "@fluencelabs/spell/spell_service.aqua"
|
||||
import "workers.aqua"
|
||||
import "services.aqua"
|
||||
|
||||
export greeting, greetings_seq, greetings_par, tester
|
||||
export greeting, greetings_seq, greetings_par
|
||||
export console_tester
|
||||
|
||||
service Console("run-console"):
|
||||
service ConsoleAny("run-console"):
|
||||
print(any: ⊤)
|
||||
|
||||
service ConsoleAny2("run-console"):
|
||||
print(msg: []?string)
|
||||
|
||||
service Console2("run-console"):
|
||||
service Console("run-console"):
|
||||
print(msg: string)
|
||||
|
||||
func console_tester():
|
||||
Console.print("tester start")
|
||||
on HOST_PEER_ID:
|
||||
workersInfo <- getWorkersInfo()
|
||||
dealId = workersInfo.deals.defaultWorker.dealId
|
||||
workersOp, err <- resolveSubnetwork(dealId)
|
||||
ConsoleAny.print(err)
|
||||
Console.print("tester end")
|
||||
|
||||
|
||||
func getWorkers() -> []Record:
|
||||
workersInfo <- getWorkersInfo()
|
||||
dealId = workersInfo.deals.defaultWorker.dealId
|
||||
workersOp, err <- resolveSubnetwork(dealId)
|
||||
Console.print([err])
|
||||
ConsoleAny.print([err])
|
||||
ConsoleAny2.print([err])
|
||||
<- workersOp!
|
||||
|
||||
func tester():
|
||||
workersInfo <- getWorkersInfo()
|
||||
dealId = workersInfo.deals.defaultWorker.dealId
|
||||
-- workersOp, err <- resolveSubnetwork(dealId)
|
||||
Console2.print("tester")
|
||||
|
||||
|
||||
func greeting(arg: string) -> string:
|
||||
on HOST_PEER_ID:
|
||||
workers <- getWorkers()
|
||||
|
Loading…
Reference in New Issue
Block a user