Skip to content

Commit

Permalink
Wait 5 seconds for cloudflare tunnel to start (#76)
Browse files Browse the repository at this point in the history
Solves visiting the tunnel too quickly causes ip problems
  • Loading branch information
ostenbom authored Apr 8, 2024
1 parent c8bac7e commit b4d1ab9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion linkup-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "linkup-cli"
version = "0.2.10"
version = "0.2.11"
edition = "2021"

[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion linkup-cli/src/background_booting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn boot_background_services() -> Result<(), CliError> {
println!("Waiting for tunnel to be ready at {}...", tunnel);

// If the tunnel is checked too quickly, it dies ¯\_(ツ)_/¯
thread::sleep(Duration::from_millis(1000));
thread::sleep(Duration::from_millis(5000));
wait_till_ok(format!("{}linkup-check", tunnel))?;

println!();
Expand Down
2 changes: 1 addition & 1 deletion linkup-cli/src/env_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn write_to_env_file(service: &str, dev_env_path: &PathBuf, env_path: &PathB
)
})?;

let content = vec![
let content = [
format!("\n{}", LINKUP_ENV_SEPARATOR),
format!("\n{}", dev_env_content),
format!("\n{}", LINKUP_ENV_SEPARATOR),
Expand Down

0 comments on commit b4d1ab9

Please sign in to comment.