mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-14 20:59:54 +00:00
[client/ui] Always use async Up in the UI service layer
The UI never needs to block on Up — status updates flow via the SubscribeStatus stream. Hardcode Async:true in Connection.Up and remove the Async field from UpParams so frontend callers are unaffected.
This commit is contained in:
@@ -31,8 +31,9 @@ import * as $models from "./models.js";
|
||||
|
||||
/**
|
||||
* SwitchActive switches to the named profile applying the reconnect policy.
|
||||
* It returns after the Switch RPC completes so the caller can refresh its UI
|
||||
* immediately; Down and Up run in a background goroutine.
|
||||
* All RPCs complete quickly: Up uses async mode so the daemon starts the
|
||||
* connection attempt and returns immediately; status updates flow via the
|
||||
* SubscribeStatus stream.
|
||||
* @param {$models.ProfileRef} p
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user