fix access log rotation attempt

This commit is contained in:
yusing
2025-02-18 05:39:53 +08:00
parent 265b52dccb
commit 99a72451d9
10 changed files with 447 additions and 198 deletions

View File

@@ -125,7 +125,7 @@ func (lb *LoadBalancer) AddServer(srv Server) {
lb.poolMu.Lock()
defer lb.poolMu.Unlock()
if lb.pool.Has(srv.Key()) {
if lb.pool.Has(srv.Key()) { // FIXME: this should be a warning
old, _ := lb.pool.Load(srv.Key())
lb.sumWeight -= old.Weight()
lb.impl.OnRemoveServer(old)