Skip to content

Commit f7d51f1

Browse files
authored
linera-service: print faucet URL even if no faucet chain is given (#4864)
## Motivation The faucet URL is accidentally not printed if `--faucet-chain` is not passed explicitly. ## Proposal Print it whenever `--with-faucet` is used. ## Test Plan Tested locally, but we don't rely on this behaviour anywhere. ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist) --------- Signed-off-by: James Kay <[email protected]>
1 parent 46d2d6d commit f7d51f1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

linera-service/src/cli/net_up_utils.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,6 @@ async fn print_messages_and_create_faucet(
347347
with_faucet is true"
348348
);
349349

350-
eprintln!("To connect to this network, you can use the following faucet URL:");
351-
println!(
352-
"{}",
353-
format!("export LINERA_FAUCET_URL=\"http://localhost:{faucet_port}\"").bold(),
354-
);
355-
356350
// This picks a lexicographically faucet_chain_idx-th non-admin chain.
357351
Some(
358352
chains
@@ -364,6 +358,13 @@ async fn print_messages_and_create_faucet(
364358
} else {
365359
None
366360
};
361+
362+
eprintln!("To connect to this network, you can use the following faucet URL:");
363+
println!(
364+
"{}",
365+
format!("export LINERA_FAUCET_URL=\"http://localhost:{faucet_port}\"").bold(),
366+
);
367+
367368
let service = client
368369
.run_faucet(Some(faucet_port.into()), faucet_chain, faucet_amount)
369370
.await?;

0 commit comments

Comments
 (0)