Skip to content

Commit

Permalink
Linter fix: context exists
Browse files Browse the repository at this point in the history
Signed-off-by: Dag Wullt <[email protected]>
  • Loading branch information
DagW authored Dec 10, 2024
1 parent 171fa86 commit 2569d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearchutil/bulk_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func (w *worker) writeBody(item *BulkIndexerItem) error {

// flush writes out the worker buffer; it must be called under a lock.
func (w *worker) flush(ctx context.Context) error {
ctx := context.WithValue(ctx, WorkerCtxKey, w.id)
ctx = context.WithValue(ctx, WorkerCtxKey, w.id)
if w.bi.config.OnFlushStart != nil {
ctx = w.bi.config.OnFlushStart(ctx)
}
Expand Down

0 comments on commit 2569d0c

Please sign in to comment.