@samitouri / QOSAMI-X402Tunnel / commits / b9adba01
Fork 0

Publishes localhost services to the agentic web through self-hostable, trustless relays with x402 payments.

refact: remove unused isRelayFallbackByURL

gg582 committed May 5, 2026 at 16:22 UTC b9adba018f34f02c0723eb2d740c72e0c0c0216f
1 file changed -9
portal/discovery/mols.go
-9
@@ -129,15 +129,6 @@ func molsRTTStats(states []RelayState) (mean time.Duration, cv float64) {
129 return time.Duration(avg), cv
130 }
131
132 -func isRelayFallbackByURL(url string, states []RelayState) bool {
133 - for _, s := range states {
134 - if s.Descriptor.APIHTTPSAddr == url {
135 - return isRelayFallback(s)
136 - }
137 - }
138 - return false
139 -}
140 -
132 func isRelayFallback(state RelayState) bool {
133 return !state.DiscoveryRTTAt.IsZero() && state.DiscoveryRTT > molsFallbackRTTThreshold
134 }