优化错误处理,替换 errors.Wrap 为 fmt.Errorf

This commit is contained in:
2025-05-15 09:53:23 +08:00
parent 75569d2d6d
commit 8b7dc9e4ff
11 changed files with 80 additions and 92 deletions

View File

@@ -5,7 +5,7 @@ import (
"log/slog"
"net"
"github.com/pkg/errors"
"errors"
)
func ChanConnAccept(ctx context.Context, ls net.Listener) chan net.Conn {