That should be i-1

This commit is contained in:
Asim 2016-04-19 00:47:15 +01:00
parent d1a6126350
commit 47d146daa4

View File

@ -156,7 +156,7 @@ func WrapClient(w ...client.Wrapper) Option {
return func(o *Options) {
// apply in reverse
for i := len(w); i > 0; i-- {
o.Client = w[i](o.Client)
o.Client = w[i-1](o.Client)
}
}
}