Skip to content

Commit

Permalink
minor: godoc edit
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Aug 18, 2024
1 parent ab517f6 commit 303de2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ func (b *Bar) SetRefill(amount int64) {
}
}

// TraverseDecorators traverses all available decorators and calls cb func on each.
// TraverseDecorators traverses available decorators and calls cb func
// on each in a new goroutine. Decorators implementing decor.Wrapper
// interface are unwrapped first.
func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
select {
case b.operateState <- func(s *bState) {
Expand Down Expand Up @@ -327,7 +329,7 @@ func (b *Bar) EwmaSetCurrent(current int64, iterDur time.Duration) {
}
}

// DecoratorAverageAdjust adjusts decorators which implement decor.AverageDecorator interface.
// DecoratorAverageAdjust adjusts decorators implementing decor.AverageDecorator interface.
// Call if there is need to set start time after decorators have been constructed.
func (b *Bar) DecoratorAverageAdjust(start time.Time) {
b.TraverseDecorators(func(d decor.Decorator) {
Expand Down

0 comments on commit 303de2e

Please sign in to comment.