From 670aec7272d5c4bf3193a3fd1df6a77d370e0d79 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 10 Jul 2024 23:20:09 +0900 Subject: [PATCH] feat(server): implement Clone for GracefulShutdown --- src/server/graceful.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/graceful.rs b/src/server/graceful.rs index dcd9f06..a6d3135 100644 --- a/src/server/graceful.rs +++ b/src/server/graceful.rs @@ -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<()>, }