MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / monitor_backends

Method monitor_backends

opensuse-proxy-cache/src/cache.rs:270–274  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

268 }
269
270 pub fn monitor_backends(&self) -> impl Iterator<Item = &Backend> {
271 std::iter::once(&self.default_backend)
272 .chain(self.backends.iter())
273 .filter(|backend| backend.check_upstream)
274 }
275
276 fn url(&self, _cls: &Classification, req_path: &Path, context: &Backend) -> Url {
277 let mut url = context.provider.clone();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected