UpdateUsers performs partial reconciliation for users provided in the request.
(_ context.Context, users []*common.User)
| 30 | |
| 31 | // UpdateUsers performs partial reconciliation for users provided in the request. |
| 32 | func (wg *WireGuard) UpdateUsers(_ context.Context, users []*common.User) error { |
| 33 | wg.syncMu.Lock() |
| 34 | defer wg.syncMu.Unlock() |
| 35 | |
| 36 | return wg.syncUsersPartialReconcile(users) |
| 37 | } |
| 38 | |
| 39 | // UpdateUsersAndRestart applies targeted user updates, then rebuilds the full |
| 40 | // peer snapshot so interface-wide settings like keepalive are reapplied to all peers. |