Skip to content

Commit

Permalink
use new contxt for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalef committed Sep 24, 2023
1 parent ad8d1aa commit f1ab30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/postgres/vector_col_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (vci *VectorColIndex) CreateIndex(ctx context.Context, force bool) error {
go func() {
defer IndexMutexMap[vci.Collection.Name].Unlock()
// Create a new context with a timeout
ctx, cancel := context.WithTimeout(ctx, IndexTimeout)
ctx, cancel := context.WithTimeout(context.Background(), IndexTimeout)
defer cancel()

// Drop index if it exists
Expand Down

0 comments on commit f1ab30e

Please sign in to comment.