SpecializedGeneralist/hnsw-grpc-server

View on GitHub

Showing 4 of 13 total issues

Method IndexManager.CreateIndex has 6 return statements (exceeds 4 allowed).
Open

func (im *IndexManager) CreateIndex(name string, config hnswgo.Config) (*hnswgo.HNSW, error) {
    im.rwMx.Lock()
    defer im.rwMx.Unlock()

    if !isValidIndexName(name) {
Severity: Major
Found in pkg/indexmanager/indexmanager.go - About 40 mins to fix

    Method Server.InsertVectors has 5 return statements (exceeds 4 allowed).
    Open

    func (s *Server) InsertVectors(stream grpcapi.Server_InsertVectorsServer) error {
        s.logger.Debug().Msg("Server.InsertVectors")
    
        startTime := time.Now()
    
    
    Severity: Major
    Found in pkg/server/server.go - About 35 mins to fix

      Method Server.InsertVectorsWithIds has 5 return statements (exceeds 4 allowed).
      Open

      func (s *Server) InsertVectorsWithIds(stream grpcapi.Server_InsertVectorsWithIdsServer) error {
          s.logger.Debug().Msg("Server.InsertVectorsWithIds")
      
          startTime := time.Now()
      
      
      Severity: Major
      Found in pkg/server/server.go - About 35 mins to fix

        Method Log.Delete has 5 return statements (exceeds 4 allowed).
        Open

        func (log *Log) Delete() error {
            log.mx.Lock()
            defer log.mx.Unlock()
        
            if log.file != nil {
        Severity: Major
        Found in pkg/wal/wal.go - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language