From c1a76024122a74b706c6783c6a26c45154925dc6 Mon Sep 17 00:00:00 2001 From: mmmray <142015632+mmmray@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:05:59 +0200 Subject: [PATCH] fix compatibility issues with go 1.21 --- transport/internet/splithttp/dialer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/splithttp/dialer.go b/transport/internet/splithttp/dialer.go index b763981a..43dccf85 100644 --- a/transport/internet/splithttp/dialer.go +++ b/transport/internet/splithttp/dialer.go @@ -263,7 +263,7 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me } else { var err error var uploadConn any - for _ = range 5 { + for i := 0; i < 5; i++ { uploadConn = httpClient.uploadRawPool.Get() if uploadConn == nil { uploadConn, err = httpClient.dialUploadConn(ctx)