optimize generateACLPeerCacheMap (#1377)
This commit is contained in:
parent
6215eb6471
commit
d0113732fe
3 changed files with 69 additions and 47 deletions
2
app.go
2
app.go
|
@ -87,7 +87,7 @@ type Headscale struct {
|
|||
aclPolicy *ACLPolicy
|
||||
aclRules []tailcfg.FilterRule
|
||||
aclPeerCacheMapRW sync.RWMutex
|
||||
aclPeerCacheMap map[string]map[string]struct{}
|
||||
aclPeerCacheMap map[string][]string
|
||||
sshPolicy *tailcfg.SSHPolicy
|
||||
|
||||
lastStateChange *xsync.MapOf[string, time.Time]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue