Skip to content

Commit

Permalink
Fix decorators (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Jan 27, 2025
1 parent c78d54b commit d8c3474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewAppender(d Driver, decorators ...func(AddFn) AddFn) (AddFn, LogReader, e
return nil, nil, fmt.Errorf("driver %T does not implement Appender", d)
}
add := a.Add
for i := len(decorators) - 1; i > 0; i++ {
for i := len(decorators) - 1; i >= 0; i-- {
add = decorators[i](add)
}
reader, ok := d.(LogReader)
Expand Down

0 comments on commit d8c3474

Please sign in to comment.