This commit is contained in:
AlteredCoder 2023-04-28 16:32:46 +02:00 committed by GitHub
parent 88587822c1
commit 6bb20fa951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,6 @@ package leakybucket
import (
"fmt"
"sync"
"time"
"github.com/antonmedv/expr"
"github.com/antonmedv/expr/vm"
@ -66,7 +65,7 @@ func (c *ConditionalOverflow) AfterBucketPour(b *BucketFactory) func(types.Event
if condition {
l.logger.Debugf("Conditional bucket overflow")
l.Ovflw_ts = time.Now().UTC()
l.Ovflw_ts = l.Last_ts
l.Out <- l.Queue
return nil
}