Parallel signature verification and http client connection pool.

This commit is contained in:
2024-10-03 14:00:40 +01:00
parent 0ada593437
commit 7725d8d864
10 changed files with 294 additions and 12 deletions
+14
View File
@@ -0,0 +1,14 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !go1.20
package errgroup
import "context"
func withCancelCause(parent context.Context) (context.Context, func(error)) {
ctx, cancel := context.WithCancel(parent)
return ctx, func(error) { cancel() }
}