Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Juncen <yu745514916@live.com>
  • Loading branch information
YuJuncen committed Mar 11, 2024
1 parent c1d20f1 commit 198136a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/backup-stream/src/subscription_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ where
let start = tokio::time::Instant::now();
debug!("Scheduing subscription."; utils::slog_region(&region), "after" => ?backoff, "handle" => ?handle);
let scheduled = async move {
tokio::time::sleep_until((start + backoff).into()).await;
tokio::time::sleep_until(start + backoff).await;
let handle = handle.unwrap_or_else(|| ObserveHandle::new());
if let Err(err) = tx.send(ObserveOp::Start { region, handle }).await {
warn!("log backup failed to schedule start observe."; "err" => %err);
Expand Down
2 changes: 1 addition & 1 deletion components/backup-stream/src/subscription_track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl SubscriptionTracer {
let r = s.meta.clone();
TRACK_REGION.dec();
s.stop();
info!("stop listen stream from store"; "observer" => ?s, "region_id"=> %region_id);
info!("Inactivating subscription."; "observer" => ?s, "region_id"=> %region_id);

*o.get_mut() = SubscribeState::Pending(r);
return true;
Expand Down

0 comments on commit 198136a

Please sign in to comment.