Skip to content

Commit

Permalink
fix ci warning
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <[email protected]>
  • Loading branch information
kevindiu committed Jun 6, 2022
1 parent 5e42844 commit afcd3ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pkg/agent/core/ngt/handler/grpc/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func (s *server) CreateIndex(ctx context.Context, c *payload.Control_CreateIndex
&errdetails.PreconditionFailure{
Violations: []*errdetails.PreconditionFailureViolation{
{
Type: "uncommited index is empty",
Subject: "failed to CreateIndex operation caused by empty uncommited indices",
Type: "uncommitted index is empty",
Subject: "failed to CreateIndex operation caused by empty uncommitted indices",
},
},
}, info.Get())
Expand Down Expand Up @@ -125,8 +125,8 @@ func (s *server) CreateAndSaveIndex(ctx context.Context, c *payload.Control_Crea
&errdetails.PreconditionFailure{
Violations: []*errdetails.PreconditionFailureViolation{
{
Type: "uncommited index is empty",
Subject: "failed to CreateAndSaveIndex operation caused by empty uncommited indices",
Type: "uncommitted index is empty",
Subject: "failed to CreateAndSaveIndex operation caused by empty uncommitted indices",
},
},
}, info.Get())
Expand All @@ -153,7 +153,7 @@ func (s *server) CreateAndSaveIndex(ctx context.Context, c *payload.Control_Crea
}

func (s *server) IndexInfo(ctx context.Context, _ *payload.Empty) (res *payload.Info_Index_Count, err error) {
ctx, span := trace.StartSpan(ctx, apiName+".IndexInfo")
_, span := trace.StartSpan(ctx, apiName+".IndexInfo")
defer func() {
if span != nil {
span.End()
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/core/ngt/handler/grpc/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
)

func (s *server) Remove(ctx context.Context, req *payload.Remove_Request) (res *payload.Object_Location, err error) {
ctx, span := trace.StartSpan(ctx, apiName+".Remove")
_, span := trace.StartSpan(ctx, apiName+".Remove")
defer func() {
if span != nil {
span.End()
Expand Down Expand Up @@ -169,7 +169,7 @@ func (s *server) StreamRemove(stream vald.Remove_StreamRemoveServer) (err error)
}

func (s *server) MultiRemove(ctx context.Context, reqs *payload.Remove_MultiRequest) (res *payload.Object_Locations, err error) {
ctx, span := trace.StartSpan(ctx, apiName+".MultiRemove")
_, span := trace.StartSpan(ctx, apiName+".MultiRemove")
defer func() {
if span != nil {
span.End()
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/core/ngt/handler/grpc/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func Test_server_Update(t *testing.T) {
- case 6.2: success update with one min value vector (type: float32)
- case 7.1: success update with one max value vector (type: uint8)
- case 7.2: success update with one max value vector (type: float32)
- case 8.1: success update with one NaN value vector (type: float32) // NOTE: To fix it, it is necessarry to check all of vector value
- case 8.1: success update with one NaN value vector (type: float32) // NOTE: To fix it, it is necessary to check all of vector value
- case 9.1: success update with one +inf value vector (type: float32)
- case 9.2: success update with one -inf value vector (type: float32)
- case 10.1: fail update with one nil vector
Expand Down

0 comments on commit afcd3ff

Please sign in to comment.