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 16, 2024
1 parent efd57ff commit eb6167a
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 eb6167a

Please sign in to comment.