From 6b843ec4dd1b46c07c00512627a1deec7d6c74fb Mon Sep 17 00:00:00 2001
From: strawberry <strawberry@puppygock.gay>
Date: Mon, 10 Jun 2024 16:49:17 -0400
Subject: [PATCH] switch to patch/fork of axum-server to fix shutdown hangs

Signed-off-by: strawberry <strawberry@puppygock.gay>
---
 Cargo.lock | 3 +--
 Cargo.toml | 5 +++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 7605b94eb..bf8c74a94 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -302,8 +302,7 @@ dependencies = [
 [[package]]
 name = "axum-server"
 version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1ad46c3ec4e12f4a4b6835e173ba21c25e484c9d02b49770bf006ce5367c036"
+source = "git+https://github.com/lexe-app/axum-server?branch=phlip9/fix-graceful-shutdown#8e3368d899079818934e61cc9c839abcbbcada8a"
 dependencies = [
  "arc-swap",
  "bytes",
diff --git a/Cargo.toml b/Cargo.toml
index 1fd5af7a5..58e84a222 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -427,6 +427,11 @@ branch = "tracing-subscriber/env-filter-clone-0.1.x-backport"
 git = "https://github.com/girlbossceo/tracing"
 branch = "tracing-subscriber/env-filter-clone-0.1.x-backport"
 
+# fixes hyper graceful shutdowns [https://github.com/programatik29/axum-server/issues/114]
+[patch.crates-io.axum-server]
+git = "https://github.com/lexe-app/axum-server"
+branch = "phlip9/fix-graceful-shutdown"
+
 #
 # Our crates
 #
-- 
GitLab