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 26, 2024
1 parent 7afb1ed commit d3b844d
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 d3b844d

Please sign in to comment.