mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 16:23:44 +00:00
comment use of mutex
This commit is contained in:
parent
9d65e1fc22
commit
f63ce0066d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user