Correct conditional setting of buffering retry expression.
This commit is contained in:
parent
5212b7d3bd
commit
dafdaa4208
2 changed files with 2 additions and 2 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -1173,7 +1173,7 @@
|
|||
"roundrobin",
|
||||
"utils"
|
||||
]
|
||||
revision = "6a7a2a4e0782bf83cfe731d59a219178f2c26be9"
|
||||
revision = "dacf34285ce530b272e9fe04d2f45f52e6374e36"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/vulcand/predicate"
|
||||
|
|
2
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
2
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
|
@ -104,7 +104,7 @@ type optSetter func(b *Buffer) error
|
|||
// CondSetter Conditional setter.
|
||||
// ex: Cond(a > 4, MemRequestBodyBytes(a))
|
||||
func CondSetter(condition bool, setter optSetter) optSetter {
|
||||
if condition {
|
||||
if !condition {
|
||||
// NoOp setter
|
||||
return func(*Buffer) error {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue