MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / with_active_namespaces

Function with_active_namespaces

src/main.rs:134–141  ·  view source on GitHub ↗
(
    active_namespaces: Arc<Mutex<HashMap<String, tokio::task::JoinHandle<()>>>>,
)

Source from the content-addressed store, hash-verified

132}
133
134fn with_active_namespaces(
135 active_namespaces: Arc<Mutex<HashMap<String, tokio::task::JoinHandle<()>>>>,
136) -> impl Filter<
137 Extract = (Arc<Mutex<HashMap<String, tokio::task::JoinHandle<()>>>>,),
138 Error = std::convert::Infallible,
139> + Clone {
140 warp::any().map(move || active_namespaces.clone())
141}
142
143async fn ensure_namespace_initialized(
144 namespace_id: &String,

Callers 1

mainFunction · 0.85

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected