Skip to content

Commit

Permalink
Specify full path for Sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Jan 7, 2025
1 parent aa0a73d commit 3a8d462
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions axum/src/response/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ use std::{
time::Duration,
};
use sync_wrapper::SyncWrapper;
use tokio::time::Sleep;

/// An SSE response
#[derive(Clone)]
Expand Down Expand Up @@ -496,7 +495,7 @@ pin_project! {
#[derive(Debug)]
pub struct KeepAliveStream<S> {
#[pin]
alive_timer: Sleep,
alive_timer: tokio::time::Sleep,
#[pin]
inner: S,
keep_alive: KeepAlive,
Expand Down

0 comments on commit 3a8d462

Please sign in to comment.