Showing 4 of 13 total issues
Method IndexManager.CreateIndex
has 6 return statements (exceeds 4 allowed). Open
Open
func (im *IndexManager) CreateIndex(name string, config hnswgo.Config) (*hnswgo.HNSW, error) {
im.rwMx.Lock()
defer im.rwMx.Unlock()
if !isValidIndexName(name) {
Method Server.InsertVectors
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Server) InsertVectors(stream grpcapi.Server_InsertVectorsServer) error {
s.logger.Debug().Msg("Server.InsertVectors")
startTime := time.Now()
Method Server.InsertVectorsWithIds
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Server) InsertVectorsWithIds(stream grpcapi.Server_InsertVectorsWithIdsServer) error {
s.logger.Debug().Msg("Server.InsertVectorsWithIds")
startTime := time.Now()
Method Log.Delete
has 5 return statements (exceeds 4 allowed). Open
Open
func (log *Log) Delete() error {
log.mx.Lock()
defer log.mx.Unlock()
if log.file != nil {