diff --git a/examples/jetstream/leader-failure/cli/main.sh b/examples/jetstream/leader-failure/cli/main.sh index ce379738..4b0c4315 100644 --- a/examples/jetstream/leader-failure/cli/main.sh +++ b/examples/jetstream/leader-failure/cli/main.sh @@ -145,6 +145,8 @@ nats stream list # Force a step down of the leader. nats stream cluster step-down ORDERS +sleep 2 + # Report the new leader. nats --user sys --password sys server report jetstream @@ -171,6 +173,8 @@ case $LEADER in ;; esac +sleep 2 + # Publish more messages. nats req orders --count=100 'Message {{Count}}'