···2pub mod error;
3mod firehose_cache;
4mod record;
056pub use consumer::consume;
7pub use firehose_cache::firehose_cache;
8pub use record::CachedRecord;
0
···2pub mod error;
3mod firehose_cache;
4mod record;
5+mod server;
67pub use consumer::consume;
8pub use firehose_cache::firehose_cache;
9pub use record::CachedRecord;
10+pub use server::serve;
+8-1
slingshot/src/main.rs
···1// use foyer::HybridCache;
2// use foyer::{Engine, DirectFsDeviceOptions, HybridCacheBuilder};
3use metrics_exporter_prometheus::PrometheusBuilder;
4-use slingshot::{consume, error::MainTaskError, firehose_cache};
56use clap::Parser;
7use tokio_util::sync::CancellationToken;
···44 log::info!("firehose cache ready.");
4546 let mut tasks: tokio::task::JoinSet<Result<(), MainTaskError>> = tokio::task::JoinSet::new();
00000004748 let consumer_shutdown = shutdown.clone();
49 tasks.spawn(async move {