Skip to content

Commit

Permalink
update ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanfarukcakir committed Mar 21, 2024
1 parent 31a4a62 commit 67fb831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (b *BackendDS) sendMetricsToBackend(r io.Reader) {
return
}

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(b.ctx, 10*time.Second)
defer cancel()

resp, err := b.c.Do(req.WithContext(ctx))
Expand Down

0 comments on commit 67fb831

Please sign in to comment.