Skip to content

Commit

Permalink
fix(torii/graphql): wait to query db after getting broker update
Browse files Browse the repository at this point in the history
commit-id:b7448a81
  • Loading branch information
lambda-0x committed Dec 3, 2024
1 parent 938d50f commit 859c9d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/torii/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ async fn spawn_rebuilding_graphql_server(
// Break the loop if there are no more events
if broker.next().await.is_none() {
break;
} else {
tokio::time::sleep(Duration::from_secs(1)).await;
}
}
}

0 comments on commit 859c9d9

Please sign in to comment.