fix: retry better

This commit is contained in:
Michael Vines 2018-10-25 18:13:32 -07:00
parent ce6e840e03
commit 40c68f3fcb
1 changed files with 10 additions and 7 deletions

View File

@ -75,13 +75,16 @@ up)
--env RUST_LOG="$RUST_LOG" \
solanalabs/solana:"$channel"
curl \
--retry 10 \
--retry-connrefused \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899
for _ in 1 2 3 4 5; do
if curl \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899; then
break;
fi
sleep 1
done
)
;;
down)