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 Aug 7, 2024
1 parent cbe098a commit 670aec7
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 670aec7

Please sign in to comment.