Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
datelier committed Oct 3, 2024
1 parent ae5db44 commit 2378fd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions pkg/agent/core/ngt/handler/grpc/linear_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ func (s *server) MultiLinearSearch(
}
wg.Wait()
if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
return nil, err

Check failure on line 483 in pkg/agent/core/ngt/handler/grpc/linear_search.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

undefined: err

Check failure on line 483 in pkg/agent/core/ngt/handler/grpc/linear_search.go

View workflow job for this annotation

GitHub Actions / grpc-stream

undefined: err
}
Expand Down Expand Up @@ -536,11 +536,11 @@ func (s *server) MultiLinearSearchByID(
}
wg.Wait()
if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
return nil, err

Check failure on line 545 in pkg/agent/core/ngt/handler/grpc/linear_search.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

undefined: err

Check failure on line 545 in pkg/agent/core/ngt/handler/grpc/linear_search.go

View workflow job for this annotation

GitHub Actions / grpc-stream

undefined: err
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/agent/core/ngt/handler/grpc/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ func (s *server) RemoveByTimestamp(
return true
})
if errs != nil {
st, _ := status.FromError(err)
log.Error(err)
st, _ := status.FromError(errs)
log.Error(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
return nil, err

Check failure on line 324 in pkg/agent/core/ngt/handler/grpc/remove.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

undefined: err

Check failure on line 324 in pkg/agent/core/ngt/handler/grpc/remove.go

View workflow job for this annotation

GitHub Actions / grpc-stream

undefined: err
}
Expand Down
12 changes: 6 additions & 6 deletions pkg/agent/core/ngt/handler/grpc/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ func (s *server) MultiSearch(
}
wg.Wait()
if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
return nil, err

Check failure on line 485 in pkg/agent/core/ngt/handler/grpc/search.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

undefined: err

Check failure on line 485 in pkg/agent/core/ngt/handler/grpc/search.go

View workflow job for this annotation

GitHub Actions / grpc-stream

undefined: err
}
Expand Down Expand Up @@ -538,11 +538,11 @@ func (s *server) MultiSearchByID(
}
wg.Wait()
if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
return nil, err

Check failure on line 547 in pkg/agent/core/ngt/handler/grpc/search.go

View workflow job for this annotation

GitHub Actions / grpc-sequential

undefined: err

Check failure on line 547 in pkg/agent/core/ngt/handler/grpc/search.go

View workflow job for this annotation

GitHub Actions / grpc-stream

undefined: err
}
Expand Down

0 comments on commit 2378fd1

Please sign in to comment.