From c2d0aa6b7696e9a353dd276ea80a150e25fe746a Mon Sep 17 00:00:00 2001 From: SionoiS Date: Tue, 22 Aug 2023 17:55:05 -0400 Subject: [PATCH] Fixes --- apps/wakunode2/app.nim | 2 +- tests/wakunode_jsonrpc/test_jsonrpc_relay.nim | 6 +++--- tests/wakunode_rest/test_rest_relay.nim | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/wakunode2/app.nim b/apps/wakunode2/app.nim index 998564667e..48855b98ae 100644 --- a/apps/wakunode2/app.nim +++ b/apps/wakunode2/app.nim @@ -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( diff --git a/tests/wakunode_jsonrpc/test_jsonrpc_relay.nim b/tests/wakunode_jsonrpc/test_jsonrpc_relay.nim index 2b732e5b22..f65c844116 100644 --- a/tests/wakunode_jsonrpc/test_jsonrpc_relay.nim +++ b/tests/wakunode_jsonrpc/test_jsonrpc_relay.nim @@ -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 @@ -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 @@ -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 diff --git a/tests/wakunode_rest/test_rest_relay.nim b/tests/wakunode_rest/test_rest_relay.nim index 4a98694cae..a0d45f013a 100644 --- a/tests/wakunode_rest/test_rest_relay.nim +++ b/tests/wakunode_rest/test_rest_relay.nim @@ -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 = @[ @@ -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 = @[ @@ -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))