From e9b456162adb74ecf751fe2c113d2afecbc6a823 Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Tue, 27 Feb 2024 13:26:50 +0100 Subject: [PATCH] use chronos 4.0.0 (#1030) --- .pinned | 2 +- libp2p.nimble | 2 +- tests/transport-interop/main.nim | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pinned b/.pinned index 3d79f8b63..82f2ded4a 100644 --- a/.pinned +++ b/.pinned @@ -1,6 +1,6 @@ bearssl;https://github.com/status-im/nim-bearssl@#e4157639db180e52727712a47deaefcbbac6ec86 chronicles;https://github.com/status-im/nim-chronicles@#32ac8679680ea699f7dbc046e8e0131cac97d41a -chronos;https://github.com/status-im/nim-chronos@#ba143e029f35fd9b4cd3d89d007cc834d0d5ba3c +chronos;https://github.com/status-im/nim-chronos@#672db137b7cad9b384b8f4fb551fb6bbeaabfe1b dnsclient;https://github.com/ba0f3/dnsclient.nim@#23214235d4784d24aceed99bbfe153379ea557c8 faststreams;https://github.com/status-im/nim-faststreams@#720fc5e5c8e428d9d0af618e1e27c44b42350309 httputils;https://github.com/status-im/nim-http-utils@#3b491a40c60aad9e8d3407443f46f62511e63b18 diff --git a/libp2p.nimble b/libp2p.nimble index 266a71e3f..28245174a 100644 --- a/libp2p.nimble +++ b/libp2p.nimble @@ -12,7 +12,7 @@ requires "nim >= 1.6.0", "dnsclient >= 0.3.0 & < 0.4.0", "bearssl >= 0.1.4", "chronicles >= 0.10.2", - "chronos >= 3.0.6", + "chronos >= 4.0.0", "metrics", "secp256k1", "stew#head", diff --git a/tests/transport-interop/main.nim b/tests/transport-interop/main.nim index be37feb06..767c49454 100644 --- a/tests/transport-interop/main.nim +++ b/tests/transport-interop/main.nim @@ -71,8 +71,12 @@ proc main {.async.} = discard redisClient.rPush("listenerAddr", $switch.peerInfo.fullAddrs.tryGet()[0]) await sleepAsync(100.hours) # will get cancelled else: + let listenerAddr = + try: redisClient.bLPop(@["listenerAddr"], testTimeout.seconds.int)[1] + except Exception as e: + raise newException(CatchableError, e.msg) let - remoteAddr = MultiAddress.init(redisClient.bLPop(@["listenerAddr"], testTimeout.seconds.int)[1]).tryGet() + remoteAddr = MultiAddress.init(listenerAddr).tryGet() dialingStart = Moment.now() remotePeerId = await switch.connect(remoteAddr) stream = await switch.dial(remotePeerId, PingCodec)