Skip to content

Commit e61f1d8

Browse files
committed
[3.4] backport 12675: Cleanup grpc clientv3/naming API
Signed-off-by: Chao Chen <[email protected]>
1 parent 7c4696a commit e61f1d8

File tree

7 files changed

+61
-330
lines changed

7 files changed

+61
-330
lines changed

clientv3/naming/endpoints/endpoints_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (m *endpointManager) Update(ctx context.Context, updates []*UpdateWithOpts)
5555
ops := make([]clientv3.Op, 0, len(updates))
5656
for _, update := range updates {
5757
if !strings.HasPrefix(update.Key, m.target+"/") {
58-
return status.Errorf(codes.InvalidArgument, "endpoints: endpoint key should be prefixed with %s/", m.target)
58+
return status.Errorf(codes.InvalidArgument, "endpoints: endpoint key should be prefixed with '%s/' got: '%s'", m.target, update.Key)
5959
}
6060
switch update.Op {
6161
case Add:

clientv3/naming/grpc.go

Lines changed: 0 additions & 133 deletions
This file was deleted.

clientv3/naming/grpc_test.go

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)