From d0c47d8c9440f45c123ede88da752e8a358c64e0 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Mon, 13 Jan 2025 19:26:20 +0100 Subject: [PATCH] self-review: update cancellation token comment --- safekeeper/src/send_interpreted_wal.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/safekeeper/src/send_interpreted_wal.rs b/safekeeper/src/send_interpreted_wal.rs index 4a5eafd3c49d..fc97828b3582 100644 --- a/safekeeper/src/send_interpreted_wal.rs +++ b/safekeeper/src/send_interpreted_wal.rs @@ -90,7 +90,8 @@ pub(crate) struct InterpretedWalReaderHandle { join_handle: JoinHandle>, state: Arc>, shard_notification_tx: tokio::sync::mpsc::UnboundedSender, - // TODO: remove or keep + // Currently, the task is aborted on [`Self`] drop. Cancellation token is here + // in case we want to refine the approach later. #[allow(unused)] cancel: CancellationToken, }