Skip to content

Commit

Permalink
Update internal/component/prometheus/remote/queue/serialization/appen…
Browse files Browse the repository at this point in the history
…der.go

Co-authored-by: Piotr <[email protected]>
  • Loading branch information
mattdurham and thampiotr authored Sep 13, 2024
1 parent 55fe162 commit 843ef50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func (a *appender) AppendCTZeroSample(ref storage.SeriesRef, l labels.Labels, t,
return ref, nil
}

// NewAppender returns an Appender that writes to a given serializer. NOTE the Appender returned writes
// data immediately and does not honor commit or rollback.
// NewAppender returns an Appender that writes to a given serializer. NOTE the returned Appender writes
// data immediately, discards data older than `ttl` and does not honor commit or rollback.
func NewAppender(ctx context.Context, ttl time.Duration, s types.Serializer, logger log.Logger) storage.Appender {
app := &appender{
ttl: ttl,
Expand Down

0 comments on commit 843ef50

Please sign in to comment.