MCPcopy Create free account
hub / github.com/GCWing/BitFun / init_on_startup

Function init_on_startup

src/apps/desktop/src/api/remote_connect_api.rs:35–41  ·  view source on GitHub ↗

Called from Tauri setup to eagerly initialize the remote connect service and restore any previously paired bot connections. Without this, bots only start listening after the user first opens the Remote Connect dialog.

()

Source from the content-addressed store, hash-verified

33/// and restore any previously paired bot connections. Without this, bots
34/// only start listening after the user first opens the Remote Connect dialog.
35pub fn init_on_startup() {
36 tokio::spawn(async {
37 if let Err(e) = ensure_service().await {
38 log::warn!("Remote connect startup init failed: {e}");
39 }
40 });
41}
42
43/// Synchronous cleanup called when the application exits.
44pub fn cleanup_on_exit() {

Callers 1

runFunction · 0.85

Calls 1

ensure_serviceFunction · 0.85

Tested by

no test coverage detected