From 266c2fe7bd676b37094d07d2f9d1bc79bc623463 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 24 Jun 2026 12:12:12 +0200 Subject: [PATCH] refactor(pnpr): source --listen default from Config::DEFAULT_LISTEN (#12629) Address CodeRabbit review: instead of duplicating the default listen address as a string literal in the CLI arg, reference the existing Config::DEFAULT_LISTEN constant so the CLI default and the config default cannot drift apart. --- pnpr/crates/pnpr/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pnpr/crates/pnpr/src/main.rs b/pnpr/crates/pnpr/src/main.rs index d52a583d02..f8f0a61941 100644 --- a/pnpr/crates/pnpr/src/main.rs +++ b/pnpr/crates/pnpr/src/main.rs @@ -14,7 +14,7 @@ struct Args { config: Option, /// Address to bind to. - #[arg(long, default_value = "127.0.0.1:7677")] + #[arg(long, default_value = Config::DEFAULT_LISTEN)] listen: SocketAddr, /// Override the storage path from the loaded config (bundled or