Skip to content

Commit

Permalink
updated example_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaizanse committed Mar 25, 2022
1 parent f0dcbad commit c47689c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_test.go
Expand Up @@ -624,7 +624,7 @@ func ExampleSubOpt() {
// Start delivering messages with delay based on BackOff array of time durations.
js.Subscribe("foo", func(msg *nats.Msg) {
fmt.Printf("Received a message: %s\n", string(msg.Data))
}, nats.BackOff([]time.Duration{50 * time.Millisecond, 250 * time.Millisecond}))
}, nats.ManualAck(), nats.MaxDeliver(2), nats.BackOff([]time.Duration{50 * time.Millisecond, 250 * time.Millisecond}))
}

func ExampleMaxWait() {
Expand Down

0 comments on commit c47689c

Please sign in to comment.