Skip to content

Commit

Permalink
Testing another bug introduced in code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Awad committed Jun 29, 2024
1 parent e843092 commit 2da4357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/endpoints/vector/bulk_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ func BulkInsert(vectorFactory vector_io.IVectorFactory) func(*gin.Context) {
for i, components := range body.SetOfComponents {
v, err := vectorFactory.NewVector(components)
if err != nil {
c.Error(fmt.Errorf("vector %d was skipped as it had the wrong dimensionalityx", i))
c.Error(fmt.Errorf("vector %d was skipped as it had the wrong dimensionality", i))
continue
}
v.Insert()
vectorsInserted++
}

response := fmt.Sprintf("%d/%d vectors successfully inserted.", vectorsInserted, len(body.SetOfComponents))
response := fmt.Sprintf("%d/%d vectors successfully insertedx.", vectorsInserted, len(body.SetOfComponents))
c.String(http.StatusOK, response) // later handle returning any vectors that were skipped to the client
}
}

0 comments on commit 2da4357

Please sign in to comment.