Skip to content

Commit

Permalink
Address ra0x3 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
deekerno committed Mar 10, 2023
1 parent 5714ba7 commit 0d7e0eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/fuel-indexer/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,13 @@ async fn create_service_task(

futs.push(handle);

if let Some(prior_module_killer) =
if let Some(killer_for_prev_executor) =
killers.insert(manifest.uid(), killer)
{
info!("Replaced execution module for {}, stopping old execution module.", manifest.uid());
prior_module_killer.store(true, Ordering::SeqCst);
let uid = manifest.uid();
info!("Indexer({uid}) was replaced. Stopping previous version of Indexer({uid}).");
killer_for_prev_executor
.store(true, Ordering::SeqCst);
}
}
Err(e) => {
Expand Down

0 comments on commit 0d7e0eb

Please sign in to comment.