Skip to content

Commit b4d1ab9

Browse files
authored
Wait 5 seconds for cloudflare tunnel to start (#76)
Solves visiting the tunnel too quickly causes ip problems
1 parent c8bac7e commit b4d1ab9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

linkup-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "linkup-cli"
3-
version = "0.2.10"
3+
version = "0.2.11"
44
edition = "2021"
55

66
[[bin]]

linkup-cli/src/background_booting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn boot_background_services() -> Result<(), CliError> {
6767
println!("Waiting for tunnel to be ready at {}...", tunnel);
6868

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

7373
println!();

linkup-cli/src/env_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn write_to_env_file(service: &str, dev_env_path: &PathBuf, env_path: &PathB
3737
)
3838
})?;
3939

40-
let content = vec![
40+
let content = [
4141
format!("\n{}", LINKUP_ENV_SEPARATOR),
4242
format!("\n{}", dev_env_content),
4343
format!("\n{}", LINKUP_ENV_SEPARATOR),

0 commit comments

Comments
 (0)