Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mind1949 authored Mar 9, 2020
1 parent 1c71cc9 commit 54cd074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func Example() {
message := []byte("message")
// Attempt to push a message every 2 seconds
for {
time.Sleep(time.Second * 3)
time.Sleep(time.Second * 2)
if err := queue.Push(message); err != nil {
fmt.Printf("Push failed: %s\n", err)
} else {
Expand Down Expand Up @@ -204,7 +204,7 @@ func (session *Session) changeChannel(channel *amqp.Channel) {
// only returned if the push action itself fails, see UnsafePush.
func (session *Session) Push(data []byte) error {
if !session.isReady {
return errors.New("failed to push push: not connected")
return errors.New("failed to push: not connected")
}
for {
err := session.UnsafePush(data)
Expand Down

0 comments on commit 54cd074

Please sign in to comment.