mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 08:32:21 -08:00
comment use of mutex
This commit is contained in:
1 parent
9d65e1fc22
commit
f63ce0066d
1 file changed
+4
-3
@@ -16,10 +16,11 @@ import (
|
||||
)
|
||||
|
||||
type authorization struct {
|
||||
ts *tsnet.Server
|
||||
tag string
|
||||
peers *peers
|
||||
ts *tsnet.Server
|
||||
tag string
|
||||
|
||||
mu sync.Mutex
|
||||
peers *peers // protected by mu
|
||||
}
|
||||
|
||||
func (a *authorization) refresh(ctx context.Context) error {
|
||||
|
||||
Reference in new issue
Block a user