refactor: move task, error and testing utils to separte repo; apply gofumpt

This commit is contained in:
yusing
2025-09-27 13:41:50 +08:00
parent 5043ef778f
commit 6776f20332
203 changed files with 696 additions and 2800 deletions

View File

@@ -168,12 +168,12 @@ type wrapperConn struct {
func (w *wrapperConn) Read(b []byte) (n int, err error) {
n, err = w.Conn.Read(b)
if err != nil {
return
return n, err
}
if w.onRead != nil {
if err = w.onRead(w.ctx); err != nil {
return
return n, err
}
}
return
return n, err
}