mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Introduce locking on the account level (#548)
This commit is contained in:
@@ -10,4 +10,8 @@ type Store interface {
|
||||
SaveAccount(account *Account) error
|
||||
GetInstallationID() string
|
||||
SaveInstallationID(id string) error
|
||||
// AcquireAccountLock should attempt to acquire account lock and return a function that releases the lock
|
||||
AcquireAccountLock(accountID string) func()
|
||||
// AcquireGlobalLock should attempt to acquire a global lock and return a function that releases the lock
|
||||
AcquireGlobalLock() func()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user