mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 13:51:52 +02:00
refactor: update pool initialization to include pool key
This commit is contained in:
@@ -48,7 +48,7 @@ const maxWeight int = 100
|
||||
func New(cfg *types.LoadBalancerConfig) *LoadBalancer {
|
||||
lb := &LoadBalancer{
|
||||
LoadBalancerConfig: cfg,
|
||||
pool: pool.New[types.LoadBalancerServer]("loadbalancer." + cfg.Link),
|
||||
pool: pool.New[types.LoadBalancerServer]("loadbalancer."+cfg.Link, "loadbalancers"),
|
||||
l: log.With().Str("name", cfg.Link).Logger(),
|
||||
}
|
||||
lb.UpdateConfigIfNeeded(cfg)
|
||||
|
||||
Reference in New Issue
Block a user