optimize generateACLPeerCacheMap (#1377)

This commit is contained in:
Philipp Krivanec
2023-04-26 06:02:54 +02:00
committed by GitHub
parent 6215eb6471
commit d0113732fe
3 changed files with 69 additions and 47 deletions

2
app.go
View File

@@ -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]