MCPcopy
hub / github.com/shiyi-0x7f/o-lib / pingHosts

Function pingHosts

src/pages/SettingsPage/index.tsx:127–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 };
126
127 const pingHosts = async () => {
128 setPinging(true);
129 try {
130 const results: HostLatency[] = await invoke("ping_hosts");
131 setHostLatencies(results);
132 cachedLatencies = results;
133 } catch (err) {
134 console.error("Failed to ping hosts:", err);
135 }
136 setPinging(false);
137 };
138
139 const loadCacheStats = async () => {
140 try {

Callers 5

SettingsPageFunction · 0.85
handleUpdateSubscriptionFunction · 0.85
handleImportHostsFunction · 0.85
handleResetHostsFunction · 0.85
handleAutoSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected