MCPcopy Create free account
hub / github.com/base/base / engine_queue_length_watcher

Method engine_queue_length_watcher

crates/consensus/rpc/src/dev.rs:30–34  ·  view source on GitHub ↗

Gets an engine queue length watcher for subscriptions.

(
        &self,
    )

Source from the content-addressed store, hash-verified

28
29 /// Gets an engine queue length watcher for subscriptions.
30 async fn engine_queue_length_watcher(
31 &self,
32 ) -> Result<tokio::sync::watch::Receiver<usize>, SubscriptionError> {
33 self.engine_client.dev_subscribe_to_engine_queue_length().await.map_err(|_| SubscriptionError::from("Internal error. Failed to receive engine task receiver query. The engine query handler is likely closed."))
34 }
35
36 async fn send_queue_length_update(
37 sink: &SubscriptionSink,

Callers 1

Tested by

no test coverage detected