Skip to content

Commit

Permalink
Merge pull request #122 from iron-io/fix-unset-max-concurrency
Browse files Browse the repository at this point in the history
Omit sending to server 'unset' MaxConcurrency if flag isn't specified
  • Loading branch information
vasilev committed Jun 27, 2018
2 parents 651cb82 + 619cfef commit a609b75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands.go
Expand Up @@ -751,8 +751,9 @@ func (u *RegisterCmd) Args() error {
if *u.retriesDelay != unset {
u.codes.RetriesDelay = u.retriesDelay
}

u.codes.MaxConcurrency = *u.maxConc
if *u.maxConc != unset {
u.codes.MaxConcurrency = *u.maxConc
}
u.codes.Config = *u.config
u.codes.DefaultPriority = *u.defaultPriority

Expand Down

0 comments on commit a609b75

Please sign in to comment.