Skip to content

Commit

Permalink
Add sleeps
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <b@devel.io>
  • Loading branch information
bruth committed Nov 4, 2022
1 parent 5bf34c7 commit 237970e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/jetstream/leader-failure/cli/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -171,6 +173,8 @@ case $LEADER in
;;
esac

sleep 2

# Publish more messages.
nats req orders --count=100 'Message {{Count}}'

Expand Down

1 comment on commit 237970e

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for nats-by-example ready!

✅ Preview
https://nats-by-example-1nmhn4qev-connecteverything.vercel.app

Built with commit 237970e.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.