Skip to content

Commit

Permalink
[FIX #227] Added check to insure message count is greater than zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Ricart committed Oct 7, 2016
1 parent 904e847 commit d44802f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/nats-bench.go
Expand Up @@ -47,6 +47,10 @@ func main() {
usage()
}

if *numMsgs < 1 {
log.Fatal("Number of messages should be greater than zero.")
}

// Setup the option block
opts := nats.DefaultOptions
opts.Servers = strings.Split(*urls, ",")
Expand Down

0 comments on commit d44802f

Please sign in to comment.