[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #11 from TheDhejavu/feat/dispatch-event-handler
Browse files Browse the repository at this point in the history
notify join
  • Loading branch information
TheDhejavu authored Aug 10, 2024
2 parents f3f38f6 + 2c7d46e commit eef0141
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,9 @@ where
},
};
self.inner.broadcasts.upsert(broadcast.get_key(), broadcast)?;
if let Some(dispatch_handler) = &self.inner.dispatch_event_handler {
dispatch_handler.notify_join(&node).await?;
}
},
MergeAction::Updated => {
info!("State changed for node {} in the cluster", node.name);
Expand Down

0 comments on commit eef0141

Please sign in to comment.