Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix Windows build: conditionally skip retries and use Ok(Self {})
  • Loading branch information
lblanquet committed Oct 8, 2025
commit 79fb103b7b7489464afb272b778c8ec816a1e91f
1 change: 1 addition & 0 deletions pgdog/src/net/tweaks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion pgdog/src/sighup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Sighup {

#[cfg(not(target_family = "unix"))]
pub(crate) fn new() -> std::io::Result<Self> {
Self {}
Ok(Self {})
}

pub(crate) async fn listen(&mut self) {
Expand Down