Skip to content

Commit

Permalink
Increase client loops to 6; streamline install cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Mar 17, 2024
1 parent 3227056 commit 2c17d18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion binaries/geph5-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Client {
pub type CtxField<T> = fn(&AnyCtx<Config>) -> T;

async fn client_main(ctx: AnyCtx<Config>) -> anyhow::Result<()> {
let _client_loops: Vec<_> = (0..1)
let _client_loops: Vec<_> = (0..6)
.map(|_| {
Immortal::respawn(
RespawnStrategy::JitterDelay(Duration::from_secs(1), Duration::from_secs(5)),
Expand Down
10 changes: 6 additions & 4 deletions test-setup.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

cargo install --locked --profile release-dbg --path binaries/geph5-client
cargo install --locked --profile release-dbg --target x86_64-unknown-linux-musl --path binaries/geph5-exit
cargo install --locked --profile release-dbg --target x86_64-unknown-linux-musl --path binaries/geph5-bridge
cargo install --locked --profile release-dbg --target x86_64-unknown-linux-musl --path binaries/geph5-broker
cargo install --locked --target x86_64-unknown-linux-musl --path binaries/geph5-client
cargo install --locked --target x86_64-unknown-linux-musl --path binaries/geph5-exit
cargo install --locked --target x86_64-unknown-linux-musl --path binaries/geph5-bridge
cargo install --locked --target x86_64-unknown-linux-musl --path binaries/geph5-broker

rsync -avz --progress $(which geph5-client) [email protected]:/usr/local/bin

rsync -avz --progress $(which geph5-exit) [email protected]:/usr/local/bin
rsync -avz --progress $(which geph5-bridge) [email protected]:/usr/local/bin
Expand Down

0 comments on commit 2c17d18

Please sign in to comment.