Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-03-16 06:00:07 +0300
committerQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-03-16 06:00:07 +0300
commitdac5f9dc8a12671ccafc79c3d1681f6e6f131ed4 (patch)
treeea3eea9886fc58dd48b893ef576ed82075a6eaef /client
parent936640076881092ad60202823f2dc81828aa4b6d (diff)
lint: Fix discouraged error wrapping verb
We encourage wrapping error with %w when constructing a new error. The new error contains the original error so that it is able to be unwrapped later. This commit converts all error wrapping to %w.
Diffstat (limited to 'client')
-rw-r--r--client/pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/pool.go b/client/pool.go
index 4fcd3835e..a6a96afc9 100644
--- a/client/pool.go
+++ b/client/pool.go
@@ -94,7 +94,7 @@ func (p *Pool) getOrCreateConnection(ctx context.Context, address, token string)
cc, err := p.dialer(ctx, address, opts)
if err != nil {
- return nil, fmt.Errorf("could not dial source: %v", err)
+ return nil, fmt.Errorf("could not dial source: %w", err)
}
p.conns[key] = cc