mirror of
https://github.com/americanexpress/baton.git
synced 2025-07-08 13:22:30 +00:00
Updating error handling for concurrency level
This commit is contained in:
parent
cfaae46c99
commit
f51c862af3
2
baton.go
2
baton.go
@ -102,7 +102,7 @@ func (baton *Baton) run() {
|
||||
timedMode = true
|
||||
}
|
||||
|
||||
if baton.configuration.concurrency == 0 || baton.configuration.numberOfRequests == 0 {
|
||||
if baton.configuration.concurrency < 1 || baton.configuration.numberOfRequests == 0 {
|
||||
log.Fatal("Invalid concurrency level or number of requests")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user