mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Initialize a user data slice with defined capacity
This commit is contained in:
@@ -938,7 +938,7 @@ func (am *DefaultAccountManager) warmupIDPCache() error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
data := userData[accountID.Id]
|
data := userData[accountID.Id]
|
||||||
if data == nil {
|
if data == nil {
|
||||||
data = make([]*idp.UserData, 0)
|
data = make([]*idp.UserData, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
user.AppMetadata.WTAccountID = accountID.Id
|
user.AppMetadata.WTAccountID = accountID.Id
|
||||||
|
|||||||
Reference in New Issue
Block a user