From cafb7cd34541940f44df3c4daeacd381540728bc Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Sat, 23 Dec 2023 14:47:02 -0500 Subject: [PATCH] increased default pushRateLimiter to 50 On mobile 5 slows upload a lot --- exchange/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchange/options.go b/exchange/options.go index 7dcce07..fe59fe7 100644 --- a/exchange/options.go +++ b/exchange/options.go @@ -37,7 +37,7 @@ func newOptions(o ...Option) (*options, error) { ipniPublishMaxBatchSize: 16 << 10, ipniPublishChanBuffer: 1, wg: nil, - pushRateLimiter: ratelimit.New(5), // Default of 5 per second + pushRateLimiter: ratelimit.New(50), // Default of 50 per second } for _, apply := range o { if err := apply(&opts); err != nil {