fix: retry better
This commit is contained in:
@ -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; then
|
||||||
http://localhost:8899
|
break;
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
down)
|
down)
|
||||||
|
Reference in New Issue
Block a user