Skip to content

Commit

Permalink
feat(server): implement Clone for GracefulShutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jul 10, 2024
1 parent 866ada8 commit 32d1c48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/graceful.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use pin_project_lite::pin_project;
use tokio::sync::watch;

/// A graceful shutdown utility
#[derive(Clone)]
pub struct GracefulShutdown {
tx: watch::Sender<()>,
}
Expand Down

0 comments on commit 32d1c48

Please sign in to comment.