Our Personal Data Server from scratch! tranquil.farm
oauth atproto pds rust postgresql objectstorage fun

fix: removed some bs

+6 -6
-2
.cargo/config.toml
··· 1 - [target.x86_64-unknown-linux-gnu] 2 - rustflags = ["-C", "link-arg=-fuse-ld=mold"]
+1 -1
Cargo.toml
··· 113 113 wiremock = "0.6" 114 114 115 115 [profile.release] 116 - lto = "thin" 116 + lto = "fat" 117 117 strip = true 118 118 codegen-units = 1
+5 -3
crates/tranquil-ripple/src/transport.rs
··· 373 373 if let Err(e) = sock_ref.set_tcp_nodelay(true) { 374 374 tracing::warn!(error = %e, "failed to set TCP_NODELAY"); 375 375 } 376 - let params = socket2::TcpKeepalive::new() 377 - .with_time(Duration::from_secs(30)) 378 - .with_interval(Duration::from_secs(10)); 376 + let keepalive = socket2::TcpKeepalive::new() 377 + .with_time(Duration::from_secs(30)); 378 + #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] 379 + let keepalive = keepalive.with_interval(Duration::from_secs(10)); 380 + let params = keepalive; 379 381 if let Err(e) = sock_ref.set_tcp_keepalive(&params) { 380 382 tracing::warn!(error = %e, "failed to set TCP keepalive"); 381 383 }