fix: исправить баги, sentinel-ошибки, устаревшие доки
Баги: - udprelay: errors.Is(DeadlineExceeded) вместо сравнения строк; короткий backoff в ветке lockout; обернуть DTLS-ошибку через %w - bondserver.copyBondToBackend: лимит pending-map в 1024 (паритет с bondclient) - srtpmimicry.RelayPacketConn: bufPool для горячего UDP-пути (паритет с listen.go) - vkauth.token.go: ручной солвер под ctx.WithTimeout(ctx, ...) вместо Background — нет утечки горутины при shutdown Гигиена: - sentinel-ошибки vkauth как var = errors.New(...); вызыватели используют errors.Is - убраны устаревшие комментарии этапов рефакторинга (Pion SPDX, "Package bond", internal/bond, удалённый файл заметок) - .gitignore: *.exe, *.so Тесты + lint проходят.
This commit is contained in:
1 parent
7e3369f478
commit
ed6825976a
18 files changed
+203
-448
No files matched your search
@@ -1,7 +1,6 @@
|
||||
// Package logx is a minimal leveled logger over stdlib log. It replaces the
|
||||
// per-package Deps{Debug bool, Debugf func} pair: callers receive a Logger and
|
||||
// call Debugf/Infof/Warnf/Errorf directly. Output format is bit-compatible with
|
||||
// the previous `log.Printf`-gated-by-isDebug pattern.
|
||||
// Package logx is a minimal leveled logger over stdlib log. Callers receive a
|
||||
// Logger and call Debugf/Infof/Warnf/Errorf directly; Debugf is gated by a
|
||||
// debug flag, the other levels always print via stdlib log.
|
||||
package logx
|
||||
|
||||
import "log"
|
||||
@@ -24,7 +23,7 @@ type stdLogger struct {
|
||||
}
|
||||
|
||||
// New returns a Logger that prints via stdlib log. If debug is false, Debugf is
|
||||
// a no-op (matches the legacy `if isDebug { log.Printf(...) }` shape).
|
||||
// a no-op.
|
||||
func New(debug bool) Logger {
|
||||
return &stdLogger{debug: debug}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user