Skip to content

Commit

Permalink
dev(better_theoros): docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Nov 3, 2024
1 parent 3e97722 commit 0e9a318
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/theoros/src/services/hyperlane/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {
Expand Down

0 comments on commit 0e9a318

Please sign in to comment.