From 2d003c117b42f14cd2eda5f9050f5247f1c3dbff Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sat, 26 Aug 2023 13:36:22 +0800 Subject: [PATCH] upgrade github.com/alimy/tryst => v0.2.0 --- go.mod | 2 +- go.sum | 2 ++ pkg/http/client.go | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 612bc589..92c5364e 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/afocus/captcha v0.0.0-20191010092841-4bd1f21c8868 github.com/alimy/cfg v0.4.0 github.com/alimy/mir/v4 v4.0.0 - github.com/alimy/tryst v0.1.0 + github.com/alimy/tryst v0.2.0 github.com/aliyun/aliyun-oss-go-sdk v2.2.8+incompatible github.com/allegro/bigcache/v3 v3.1.0 github.com/bufbuild/connect-go v1.10.0 diff --git a/go.sum b/go.sum index 517b9482..920fa9d8 100644 --- a/go.sum +++ b/go.sum @@ -129,6 +129,8 @@ github.com/alimy/mir/v4 v4.0.0 h1:MzGfmoLjjvR69jbZEmpKJO3tUuqB0RGRv1UWPbtukBg= github.com/alimy/mir/v4 v4.0.0/go.mod h1:d58dBvw2KImcVbAUANrciEV/of0arMNsI9c/5UNCMMc= github.com/alimy/tryst v0.1.0 h1:883i0eOLFmEn34S7vlUjICJLU0YFBToti+F7YRFcF1g= github.com/alimy/tryst v0.1.0/go.mod h1:K//dPeoE/nnv2Jw8C3iPE7n8mO6LVqAxVmqbopM9nAk= +github.com/alimy/tryst v0.2.0 h1:nbSMrjV3W/VILopqpcZiJhgmgC2ocfnKRmWKFH2dp9w= +github.com/alimy/tryst v0.2.0/go.mod h1:K//dPeoE/nnv2Jw8C3iPE7n8mO6LVqAxVmqbopM9nAk= github.com/aliyun/aliyun-oss-go-sdk v2.2.8+incompatible h1:6JF1bjhT0WN2srEmijfOFtVWwV91KZ6dJY1/JbdtGrI= github.com/aliyun/aliyun-oss-go-sdk v2.2.8+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/allegro/bigcache/v3 v3.1.0 h1:H2Vp8VOvxcrB91o86fUSVJFqeuz8kpyyB02eH3bSzwk= diff --git a/pkg/http/client.go b/pkg/http/client.go index 3dd85efd..d77c1d14 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -65,10 +65,10 @@ func NewAsyncClient(client *http.Client, conf *AsyncClientConf) AsyncClient { return client.Do(req) }, gp.MinWorkerOpt(minWorker), - gp.MaxRequestBuffer(maxRequestBuf), - gp.MaxRequestTempBuffer(maxRequestTempBuf), - gp.MaxTickCount(conf.MaxTickCount), - gp.TickWaitTime(conf.TickWaitTime), + gp.MaxRequestBufOpt(maxRequestBuf), + gp.MaxRequestTempBufOpt(maxRequestTempBuf), + gp.MaxTickCountOpt(conf.MaxTickCount), + gp.TickWaitTimeOpt(conf.TickWaitTime), ), } }