MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / event_handler

Function event_handler

library/src/bootstrap.rs:160–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158static EVENT_HANDLER: OnceLock<EventHandler<AtomicContextManager>> = OnceLock::new();
159
160pub async fn event_handler() -> &'static EventHandler<AtomicContextManager> {
161 let eh = match EVENT_HANDLER.get() {
162 None => {
163 let event_handler = init_event_handler().await;
164
165 EVENT_HANDLER.get_or_init(|| event_handler)
166 }
167 Some(event_handler) => event_handler,
168 };
169 eh
170}
171
172static POOL: OnceLock<PgPool> = OnceLock::new();
173

Callers 1

message_busMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected