mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
15 lines
293 B
Go
15 lines
293 B
Go
//go:build debug
|
|
|
|
package pool
|
|
|
|
import (
|
|
"runtime/debug"
|
|
|
|
"github.com/yusing/go-proxy/internal/logging"
|
|
)
|
|
|
|
func (p Pool[T]) checkExists(key string) {
|
|
if _, ok := p.m.Load(key); ok {
|
|
logging.Warn().Msgf("%s: key %s already exists\nstacktrace: %s", p.name, key, string(debug.Stack()))
|
|
}
|
|
}
|