mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-28 12:22:12 +01:00
refactor: update pool initialization to include pool key
This commit is contained in:
@@ -80,7 +80,7 @@ func (srv *httpServer) Listen(addr string, proto HTTPProto) error {
|
||||
}
|
||||
srv.stopFunc = task.FinishAndWait
|
||||
srv.addr = addr
|
||||
srv.routes = pool.New[types.HTTPRoute](fmt.Sprintf("[%s] %s", proto, addr))
|
||||
srv.routes = pool.New[types.HTTPRoute](fmt.Sprintf("[%s] %s", proto, addr), "http_routes")
|
||||
srv.routes.DisableLog(srv.ep.httpPoolDisableLog.Load())
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user