fix: retry better

This commit is contained in:
Michael Vines
2018-10-25 18:13:32 -07:00
parent ce6e840e03
commit 40c68f3fcb

View File

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