Skip to content

Commit

Permalink
Making an error log a panic if tx watcher does not have a grpc source
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Oct 1, 2024
1 parent 0ae6de3 commit f454c2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/router-feed-lib/src/grpc_tx_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ pub async fn process_tx_events(
let mut source_jobs = vec![];

let Some(grpc_sources) = config.grpc_sources.clone() else {
error!("There should be atleast one grpc source specified");
return;
panic!("There should be atleast one grpc source specified for grpc tx watcher");
};

for grpc_source in grpc_sources.clone() {
Expand Down

0 comments on commit f454c2b

Please sign in to comment.