Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <i.can.feel.gravity@gmail.com>
  • Loading branch information
kpango committed Jul 2, 2020
1 parent 1a0e96a commit 62a75b1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion pkg/gateway/lb/handler/grpc/visitlist.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
// Code generated by syncmap; DO NOT EDIT.
//
// Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

package grpc

Expand Down
2 changes: 1 addition & 1 deletion pkg/gateway/lb/usecase/vald.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func New(cfg *config.Data) (r runner.Runner, err error) {
eg := errgroup.Get()

var (
gateway service.Gateway
gateway service.Gateway
)

if addrs := cfg.Gateway.BackupManager.Client.Addrs; len(addrs) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gateway/meta/handler/grpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (s *server) MultiUpdate(ctx context.Context, vecs *payload.Object_Vectors)
}
return nil, status.WrapWithInternal(fmt.Sprintf("MultiUpdate API failed MultiUpdate request %#v", ids), err, info.Get())
}
for i := range vecs.GetVectors(){
for i := range vecs.GetVectors() {
vecs.Vectors[i].Id = metas[i]
}
res, err = s.MultiUpdate(ctx, vecs)
Expand Down

0 comments on commit 62a75b1

Please sign in to comment.