[iota-data-ingestion-core
]: Use CancellationToken
#4383
Labels
infrastructure
Issues related to the Infrastructure Team
sc-platform
Issues related to the Smart Contract Platform group.
Description
Currently the
IndexerExecutor
run method accepts as an argument anoneshot::Receiver<()>
to handle graceful shutdown, this is fine but the issue is that some crates use CancellationToken and other use a oneshot channel, to make things compatible it would be better to use the CancellationToken as it can be cloned easily and all tasks which listens to the same CancellationToken can be gracefully shutdown easily.The text was updated successfully, but these errors were encountered: