all: use atomic.Pointer
Also add some missing docs. Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@ -688,7 +688,7 @@ func (f *forwarder) forwardWithDestChan(ctx context.Context, query packet, respo
|
||||
}
|
||||
}
|
||||
|
||||
if fl, ok := fwdLogAtomic.Load().(*fwdLog); ok {
|
||||
if fl := fwdLogAtomic.Load(); fl != nil {
|
||||
fl.addName(string(domain))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user