From 0e9a31842b85884b0572f87e9d3eb11949e6da2e Mon Sep 17 00:00:00 2001 From: akhercha Date: Sun, 3 Nov 2024 17:41:39 +0100 Subject: [PATCH] dev(better_theoros): docs --- rust/theoros/src/services/hyperlane/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/theoros/src/services/hyperlane/mod.rs b/rust/theoros/src/services/hyperlane/mod.rs index 221eb28..776ddaa 100644 --- a/rust/theoros/src/services/hyperlane/mod.rs +++ b/rust/theoros/src/services/hyperlane/mod.rs @@ -165,6 +165,8 @@ impl HyperlaneService { Ok(()) } + /// Sends a websocket notification to any client that *might* be listening. + /// Allows them to retrieve the latest update instantly after it is stored. async fn send_websocket_notification(&self) { match self.storage.feeds_updated_tx().send(NewUpdatesAvailableEvent::New) { Ok(_) => {