mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
cmd/cli: cache query from self result
So we don't waste time to compute a result which is not likely to be changed.
This commit is contained in:
committed by
Cuong Manh Le
parent
14c88f4a6d
commit
f507bc8f9e
@@ -98,6 +98,7 @@ type prog struct {
|
||||
ptrLoopGuard *loopGuard
|
||||
lanLoopGuard *loopGuard
|
||||
metricsQueryStats atomic.Bool
|
||||
queryFromSelfMap sync.Map
|
||||
|
||||
selfUninstallMu sync.Mutex
|
||||
refusedQueryCount int
|
||||
|
||||
Reference in New Issue
Block a user