优化错误处理,替换 errors.Wrap 为 fmt.Errorf
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"log/slog"
|
||||
"net"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"errors"
|
||||
)
|
||||
|
||||
func ChanConnAccept(ctx context.Context, ls net.Listener) chan net.Conn {
|
||||
|
||||
Reference in New Issue
Block a user