Skip to content

Commit

Permalink
io.Closer
Browse files Browse the repository at this point in the history
  • Loading branch information
woorui committed Sep 29, 2022
1 parent 192ccb6 commit e5357a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"io"
"os"
"time"
)
Expand Down Expand Up @@ -46,7 +45,6 @@ func DefaultErrHandler[T any](err error, elements []T) {
//
// If both Threshold and FlushInterval are set to zero, Writing is Flushing.
type Option[T any] struct {
io.WriteCloser
// Threshold indicates that the buffer is large enough to trigger flushing,
// if Threshold is zero, do not judge threshold.
Threshold uint32
Expand Down

0 comments on commit e5357a0

Please sign in to comment.