Skip to content

Commit

Permalink
Merge pull request #440 from mind1949/master
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
michaelklishin authored Jul 16, 2020
2 parents 1c71cc9 + 54cd074 commit 3a5c3a9
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 3a5c3a9

Please sign in to comment.