mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 17:41:05 +01:00
refactor: simplify io code and make utils module independent
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/yusing/go-proxy/internal/logging"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type BytesPool struct {
|
||||
@@ -140,6 +140,6 @@ func dropBuffers() {
|
||||
checks++
|
||||
}
|
||||
if count > 0 {
|
||||
logging.Debug().Int("dropped", count).Int("size", droppedSize).Msg("dropped buffers from pool")
|
||||
log.Debug().Int("dropped", count).Int("size", droppedSize).Msg("dropped buffers from pool")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user