From 428c45da164e39f0b94569239e3b2796477df095 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 21 Oct 2025 10:44:07 +0300 Subject: Chore: fix linter complaints --- storage/vector.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'storage') diff --git a/storage/vector.go b/storage/vector.go index 6958634..900803c 100644 --- a/storage/vector.go +++ b/storage/vector.go @@ -75,9 +75,7 @@ func (p ProviderSQL) WriteVector(row *models.VectorRow) error { return err } -func decodeUnsafe(bs []byte) []float32 { - return unsafe.Slice((*float32)(unsafe.Pointer(&bs[0])), len(bs)/4) -} + func (p ProviderSQL) SearchClosest(q []float32) ([]models.VectorRow, error) { // TODO: This function has been temporarily disabled to avoid deprecated library usage. -- cgit v1.2.3