Skip to content

Commit cf39d86

Browse files
committed
Merge remote-tracking branch 'origin/add-ip-bind-to-signer' into add-ip-bind-to-signer
2 parents 09ac821 + d537288 commit cf39d86

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

crates/cli/src/docker_init.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ pub async fn handle_docker_init(config_path: PathBuf, output_dir: PathBuf) -> Re
7373
let mut targets = Vec::new();
7474

7575
// address for signer API communication
76-
let signer_port = if let Some(signer_config) = &cb_config.signer {
77-
signer_config.port
78-
} else {
79-
DEFAULT_SIGNER_PORT
80-
};
76+
let signer_port = cb_config.signer.as_ref().map(|s| s.port).unwrap_or(DEFAULT_SIGNER_PORT);
8177
let signer_server =
8278
if let Some(SignerConfig { inner: SignerType::Remote { url }, .. }) = &cb_config.signer {
8379
url.to_string()

0 commit comments

Comments
 (0)