mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 05:49:07 +02:00
fix concurrency and context
This commit is contained in:
@@ -269,7 +269,7 @@ func (am *DefaultAccountManager) CreateGroups(ctx context.Context, accountID, us
|
||||
storeEvent()
|
||||
}
|
||||
|
||||
am.dispatchAffected(ctx, accountID, snaps, changes)
|
||||
go am.dispatchAffected(ctx, accountID, snaps, changes)
|
||||
|
||||
return globalErr
|
||||
}
|
||||
@@ -312,7 +312,7 @@ func (am *DefaultAccountManager) UpdateGroups(ctx context.Context, accountID, us
|
||||
storeEvent()
|
||||
}
|
||||
|
||||
am.dispatchAffected(ctx, accountID, snaps, changes)
|
||||
go am.dispatchAffected(ctx, accountID, snaps, changes)
|
||||
|
||||
return globalErr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user