Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SionoiS committed Aug 22, 2023
1 parent ff984cd commit c2d0aa6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/wakunode2/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ proc startApp*(app: App): Future[AppResult[void]] {.async.} =
if res.isErr():
return err("failed to start waku discovery v5: " & $res.error)

asyncSpawn wakuDiscv5.searchLoop(app.node.peerManager, some(app.record))
asyncSpawn wakuDiscv5.searchLoop(app.node.peerManager)
asyncSpawn wakuDiscv5.subscriptionsListener(app.node.topicSubscriptionQueue)

return await startNode(
Expand Down
6 changes: 3 additions & 3 deletions tests/wakunode_jsonrpc/test_jsonrpc_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ suite "Waku v2 JSON-RPC API - Relay":
ta = initTAddress(ValidIpAddress.init("0.0.0.0"), rpcPort)
server = newRpcHttpServer([ta])

installRelayApiHandlers(node, none(WakuDiscoveryV5), server, newTestMessageCache())
installRelayApiHandlers(node, server, newTestMessageCache())
server.start()

# JSON-RPC client
Expand Down Expand Up @@ -110,7 +110,7 @@ suite "Waku v2 JSON-RPC API - Relay":
ta = initTAddress(ValidIpAddress.init("0.0.0.0"), rpcPort)
server = newRpcHttpServer([ta])

installRelayApiHandlers(srcNode, none(WakuDiscoveryV5), server, newTestMessageCache())
installRelayApiHandlers(srcNode, server, newTestMessageCache())
server.start()

# JSON-RPC client
Expand Down Expand Up @@ -176,7 +176,7 @@ suite "Waku v2 JSON-RPC API - Relay":
ta = initTAddress(ValidIpAddress.init("0.0.0.0"), rpcPort)
server = newRpcHttpServer([ta])

installRelayApiHandlers(dstNode, none(WakuDiscoveryV5), server, newTestMessageCache())
installRelayApiHandlers(dstNode, server, newTestMessageCache())
server.start()

# JSON-RPC client
Expand Down
6 changes: 3 additions & 3 deletions tests/wakunode_rest/test_rest_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ suite "Waku v2 Rest API - Relay":

let topicCache = TopicCache.init()

installRelayPostSubscriptionsV1Handler(restServer.router, node, none(WakuDiscoveryV5), topicCache)
installRelayPostSubscriptionsV1Handler(restServer.router, node, topicCache)
restServer.start()

let pubSubTopics = @[
Expand Down Expand Up @@ -96,7 +96,7 @@ suite "Waku v2 Rest API - Relay":
topicCache.subscribe("pubsub-topic-3")
topicCache.subscribe("pubsub-topic-x")

installRelayDeleteSubscriptionsV1Handler(restServer.router, node, none(WakuDiscoveryV5),topicCache)
installRelayDeleteSubscriptionsV1Handler(restServer.router, node,topicCache)
restServer.start()

let pubSubTopics = @[
Expand Down Expand Up @@ -192,7 +192,7 @@ suite "Waku v2 Rest API - Relay":

let topicCache = TopicCache.init()

installRelayApiHandlers(restServer.router, node, none(WakuDiscoveryV5),topicCache)
installRelayApiHandlers(restServer.router, node,topicCache)
restServer.start()

let client = newRestHttpClient(initTAddress(restAddress, restPort))
Expand Down

0 comments on commit c2d0aa6

Please sign in to comment.