From 319da34de41ec84310b23bba2ad79c8a3a4c14ff Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Fri, 3 Mar 2023 17:34:38 +0300 Subject: [PATCH] querylog: fix docs --- internal/querylog/http.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/querylog/http.go b/internal/querylog/http.go index ab761307..d67c962c 100644 --- a/internal/querylog/http.go +++ b/internal/querylog/http.go @@ -177,8 +177,6 @@ func (l *queryLog) handleQueryLogConfig(w http.ResponseWriter, r *http.Request) l.lock.Lock() defer l.lock.Unlock() - // Copy data, modify it, then activate. Other threads (readers) don't need - // to use this lock. conf := *l.conf if newConf.Enabled != aghalg.NBNull { conf.Enabled = newConf.Enabled == aghalg.NBTrue @@ -243,8 +241,6 @@ func (l *queryLog) handlePutQueryLogConfig(w http.ResponseWriter, r *http.Reques l.lock.Lock() defer l.lock.Unlock() - // Copy data, modify it, then activate. Other threads (readers) don't need - // to use this lock. conf := *l.conf conf.Ignored = set