Skip to content

Commit

Permalink
feat: add SettledEvent to sui event subscriber (#72)
Browse files Browse the repository at this point in the history
* first commit

* add logging
  • Loading branch information
jorgeantonio21 authored May 6, 2024
1 parent d0229a7 commit 6b0784c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion atoma-event-subscribe/sui/src/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ impl SuiSubscriber {
async fn handle_event(&self, event: SuiEvent) -> Result<(), SuiSubscriberError> {
match event.type_.name.as_str() {
"DisputeEvent" => todo!(),
"FirstSubmissionEvent" | "NodeRegisteredEvent" | "NodeSubscribedToModelEvent" => {}
"FirstSubmissionEvent"
| "NodeRegisteredEvent"
| "NodeSubscribedToModelEvent"
| "SettledEvent" => {
info!("Received event: {}", event.type_.name.as_str());
}
"Text2TextPromptEvent" | "NewlySampledNodesEvent" => {
let event_data = event.parsed_json;
self.handle_text2text_prompt_event(event_data).await?;
Expand Down

0 comments on commit 6b0784c

Please sign in to comment.