Skip to content

Commit

Permalink
[3.4] backport 12675: Cleanup grpc clientv3/naming API
Browse files Browse the repository at this point in the history
Signed-off-by: Chao Chen <chaochn@amazon.com>
  • Loading branch information
chaochn47 committed Oct 20, 2023
1 parent 9b18c4f commit d8be61d
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 330 deletions.
2 changes: 1 addition & 1 deletion clientv3/naming/endpoints/endpoints_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (m *endpointManager) Update(ctx context.Context, updates []*UpdateWithOpts)
ops := make([]clientv3.Op, 0, len(updates))
for _, update := range updates {
if !strings.HasPrefix(update.Key, m.target+"/") {
return status.Errorf(codes.InvalidArgument, "endpoints: endpoint key should be prefixed with %s/", m.target)
return status.Errorf(codes.InvalidArgument, "endpoints: endpoint key should be prefixed with '%s/' got: '%s'", m.target, update.Key)
}
switch update.Op {
case Add:
Expand Down
133 changes: 0 additions & 133 deletions clientv3/naming/grpc.go

This file was deleted.

139 changes: 0 additions & 139 deletions clientv3/naming/grpc_test.go

This file was deleted.

Loading

0 comments on commit d8be61d

Please sign in to comment.