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

Function main

redis-server/src/main.rs:318–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317#[tokio::main]
318async fn main() {
319 tracing_forest::worker_task()
320 .set_global(true)
321 .build_with(|layer: tracing_forest::ForestLayer<_, _>| {
322 use tracing_subscriber::{layer::SubscriberExt, EnvFilter, Registry};
323
324 let filter_layer = EnvFilter::try_from_default_env()
325 .or_else(|_| EnvFilter::try_new("info"))
326 .unwrap();
327
328 Registry::default().with(filter_layer).with(layer)
329 })
330 .on(async { do_main().await })
331 .await
332}
333
334#[cfg(test)]
335mod tests {

Callers

nothing calls this directly

Calls 1

do_mainFunction · 0.70

Tested by

no test coverage detected