From 79fb103b7b7489464afb272b778c8ec816a1e91f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 8 Oct 2025 05:43:02 +0200 Subject: [PATCH] Fix Windows build: conditionally skip retries and use Ok(Self {}) --- pgdog/src/net/tweaks.rs | 1 + pgdog/src/sighup.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pgdog/src/net/tweaks.rs b/pgdog/src/net/tweaks.rs index b63ec08b9..5af3f487a 100644 --- a/pgdog/src/net/tweaks.rs +++ b/pgdog/src/net/tweaks.rs @@ -21,6 +21,7 @@ pub fn tweak(socket: &TcpStream) -> Result<()> { if let Some(interval) = config.interval() { params = params.with_interval(interval); } + #[cfg(not(windows))] if let Some(retries) = config.retries() { params = params.with_retries(retries); } diff --git a/pgdog/src/sighup.rs b/pgdog/src/sighup.rs index fc04b3cef..e72807e15 100644 --- a/pgdog/src/sighup.rs +++ b/pgdog/src/sighup.rs @@ -15,7 +15,7 @@ impl Sighup { #[cfg(not(target_family = "unix"))] pub(crate) fn new() -> std::io::Result { - Self {} + Ok(Self {}) } pub(crate) async fn listen(&mut self) {