From 32d1c48a9021bd169450794daba055e1b88b7a54 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<()>, }