From c3b34143238264cc9193d7129e1a7ad56351baca Mon Sep 17 00:00:00 2001 From: Calin Martinconi Date: Tue, 17 Sep 2024 15:46:07 +0300 Subject: [PATCH 1/2] fix: adapt comment to corresponding used value --- pkg/pullsync/pullsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pullsync/pullsync.go b/pkg/pullsync/pullsync.go index dfc24242686..3c3d3fa2d3b 100644 --- a/pkg/pullsync/pullsync.go +++ b/pkg/pullsync/pullsync.go @@ -51,7 +51,7 @@ const ( pageTimeout = time.Second makeOfferTimeout = 15 * time.Minute handleMaxChunksPerSecond = 250 - handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max 100 chunks per second per peer + handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max 250 chunks per second per peer ) // Interface is the PullSync interface. From 279f66b01e03e5f0431dfb9c66e96d690f161e6a Mon Sep 17 00:00:00 2001 From: Calin Martinconi Date: Wed, 18 Sep 2024 10:15:06 +0300 Subject: [PATCH 2/2] fix: use variable name istead of actual value --- pkg/pullsync/pullsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pullsync/pullsync.go b/pkg/pullsync/pullsync.go index 3c3d3fa2d3b..afd2ee17fed 100644 --- a/pkg/pullsync/pullsync.go +++ b/pkg/pullsync/pullsync.go @@ -51,7 +51,7 @@ const ( pageTimeout = time.Second makeOfferTimeout = 15 * time.Minute handleMaxChunksPerSecond = 250 - handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max 250 chunks per second per peer + handleRequestsLimitRate = time.Second / handleMaxChunksPerSecond // handle max `handleMaxChunksPerSecond` chunks per second per peer ) // Interface is the PullSync interface.