Skip to content

Commit 9db88e5

Browse files
Fix: linting
1 parent ef605a8 commit 9db88e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/openSearch/openSearchClient/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ func (c *Client) SearchStream(
217217
clearScrollReq := opensearchapi.ScrollDeleteReq{
218218
ScrollIDs: []string{scrollID},
219219
}
220-
_, err = c.openSearchProjectClient.Scroll.Delete(ctx, clearScrollReq)
220+
detachedCtx := context.WithoutCancel(ctx)
221+
_, err = c.openSearchProjectClient.Scroll.Delete(detachedCtx, clearScrollReq)
221222
if err != nil {
222223
log.Warn().Err(err).Msgf("failed to delete scroll context")
223224
}

0 commit comments

Comments
 (0)