mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 04:57:36 +00:00
introduce rw lock for db, ish...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:

committed by
Kristoffer Dalby

parent
a1a3ff4ba8
commit
eff529f2c5
@@ -40,6 +40,8 @@ type HSDatabase struct {
|
||||
db *gorm.DB
|
||||
notifier *notifier.Notifier
|
||||
|
||||
mu sync.RWMutex
|
||||
|
||||
ipAllocationMutex sync.Mutex
|
||||
|
||||
ipPrefixes []netip.Prefix
|
||||
|
Reference in New Issue
Block a user