Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multinode-demo: Automatically add rsync:// prefix to URLs that need it #466

Merged
merged 1 commit into from
Jun 27, 2018

Conversation

mvines
Copy link
Member

@mvines mvines commented Jun 27, 2018

Things like this now work, which is much more ergonomic:

$ ./multinode-demo/validator.sh testnet.solana.com
$ ./multinode-demo/client-demo.sh testnet.solana.com

@mvines mvines added the automerge Merge this Pull Request automatically once CI passes label Jun 27, 2018
@solana-grimes solana-grimes merged commit 5cd1fb4 into solana-labs:master Jun 27, 2018
rsync_url() { # adds the 'rsync://` prefix to URLs that need it
local url="$1"

if [[ "$url" =~ ^.*:.*$ ]]; then
Copy link
Contributor

@rob-solana rob-solana Jun 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can do this more simply, if you like: ${url} != ${url%:*}

[rwalker@anodyne .ssh]$ hi=foothere
[rwalker@anodyne .ssh]$ [[ $hi != ${hi%:*} ]] && echo colon!
[rwalker@anodyne .ssh]$ hi=foo:there
[rwalker@anodyne .ssh]$ [[ $hi != ${hi%:*} ]] && echo colon!
colon!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I prefer the existing form so imma keep it as is

@@ -47,3 +47,22 @@ export RUST_BACKTRACE=1
[[ $(uname) = Linux ]] && (set -x; sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null)

SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config

rsync_url() { # adds the 'rsync://` prefix to URLs that need it
local url="$1"
Copy link
Contributor

@rob-solana rob-solana Jun 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer declare over local, same meaning, can be used outside functions

@garious
Copy link
Contributor

garious commented Jun 27, 2018

:)

@mvines mvines mentioned this pull request Jun 27, 2018
CriesofCarrots pushed a commit that referenced this pull request Feb 28, 2020
* fix: add Account.rent_epoch field

* fix: rebuild bpf test fixtures
mvines added a commit to mvines/solana that referenced this pull request Jun 15, 2020
…ana-labs#466)

* fix: add Account.rent_epoch field

* fix: rebuild bpf test fixtures
mvines added a commit that referenced this pull request Jun 15, 2020
* fix: add Account.rent_epoch field

* fix: rebuild bpf test fixtures
yihau added a commit to yihau/solana that referenced this pull request Mar 29, 2024
willhickey pushed a commit that referenced this pull request Mar 29, 2024
ci: add release pipeline (#466)

(cherry picked from commit 212cbdb)

Co-authored-by: Yihau Chen <[email protected]>
willhickey pushed a commit that referenced this pull request Mar 29, 2024
ci: add release pipeline (#466)

(cherry picked from commit 212cbdb)

Co-authored-by: Yihau Chen <[email protected]>
t-nelson pushed a commit to t-nelson/solana that referenced this pull request Apr 2, 2024
…-labs#486)

ci: add release pipeline (solana-labs#466)

(cherry picked from commit 212cbdb)

Co-authored-by: Yihau Chen <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Apr 7, 2024
…-labs#487)

ci: add release pipeline (solana-labs#466)

(cherry picked from commit 212cbdb)

Co-authored-by: Yihau Chen <[email protected]>
HaoranYi pushed a commit to HaoranYi/solana that referenced this pull request Apr 8, 2024
…-labs#486)

ci: add release pipeline (solana-labs#466)

(cherry picked from commit 212cbdb)

Co-authored-by: Yihau Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants