From 889067ba20252097458f697d7415230f8fa68b8a Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:00:29 +0200 Subject: [PATCH 1/2] Update prepare_release.md to add js-waku update (#3134) --- .github/ISSUE_TEMPLATE/prepare_release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/prepare_release.md b/.github/ISSUE_TEMPLATE/prepare_release.md index 666bff4e0f..b92b54ba78 100644 --- a/.github/ISSUE_TEMPLATE/prepare_release.md +++ b/.github/ISSUE_TEMPLATE/prepare_release.md @@ -66,3 +66,4 @@ All items below are to be completed by the owner of the given release. - [ ] **Post release** - [ ] Submit a PR from the release branch to master. Important to commit the PR with "create a merge commit" option. - [ ] Update waku-org/nwaku-compose with the new release version. + - [ ] Update version in js-waku repo. [update only this](https://github.com/waku-org/js-waku/blob/7c0ce7b2eca31cab837da0251e1e4255151be2f7/.github/workflows/ci.yml#L135) by submitting a PR. From 3dc3fc8e5ac2eb2095ae8eb0cf1370651ea25d71 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:09:25 +0200 Subject: [PATCH 2/2] peer_manager: prevent too intense loop when no peers connected (#3130) --- waku/node/peer_manager/peer_manager.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/node/peer_manager/peer_manager.nim b/waku/node/peer_manager/peer_manager.nim index cb728f3ee3..cf633bb13d 100644 --- a/waku/node/peer_manager/peer_manager.nim +++ b/waku/node/peer_manager/peer_manager.nim @@ -928,7 +928,7 @@ proc relayConnectivityLoop*(pm: PeerManager) {.async.} = chronos.seconds(int(float(ConnectivityLoopInterval.seconds()) * factor)) # Shorten the connectivity loop interval dynamically based on percentage of peers to fill or connections to prune - await sleepAsync(dynamicSleepInterval) + await sleepAsync(max(dynamicSleepInterval, chronos.seconds(1))) proc pruneInRelayConns(pm: PeerManager, amount: int) {.async.} = if amount <= 0: