Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <819421878@qq.com>
  • Loading branch information
okJiang committed Nov 22, 2024
1 parent 4d91a84 commit fe3fdd1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions errors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -901,11 +901,6 @@ error = '''
reset user timestamp failed, %s
'''

["PD:tso:ErrSyncMaxTS"]
error = '''
sync max ts failed, %s
'''

["PD:tso:ErrUpdateTimestamp"]
error = '''
update timestamp failed, %s
Expand Down
1 change: 0 additions & 1 deletion pkg/errs/errno.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ var (
var (
ErrGetAllocator = errors.Normalize("get allocator failed, %s", errors.RFCCodeText("PD:tso:ErrGetAllocator"))
ErrGetLocalAllocator = errors.Normalize("get local allocator failed, %s", errors.RFCCodeText("PD:tso:ErrGetLocalAllocator"))
ErrSyncMaxTS = errors.Normalize("sync max ts failed, %s", errors.RFCCodeText("PD:tso:ErrSyncMaxTS"))
ErrResetUserTimestamp = errors.Normalize("reset user timestamp failed, %s", errors.RFCCodeText("PD:tso:ErrResetUserTimestamp"))
ErrGenerateTimestamp = errors.Normalize("generate timestamp failed, %s", errors.RFCCodeText("PD:tso:ErrGenerateTimestamp"))
ErrUpdateTimestamp = errors.Normalize("update timestamp failed, %s", errors.RFCCodeText("PD:tso:ErrUpdateTimestamp"))
Expand Down
2 changes: 1 addition & 1 deletion server/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2757,7 +2757,7 @@ func scatterRegions(cluster *cluster.RaftCluster, regionsID []uint64, group stri
}

// Deprecated
func (s *GrpcServer) GetDCLocationInfo(ctx context.Context, _ *pdpb.GetDCLocationInfoRequest) (*pdpb.GetDCLocationInfoResponse, error) {
func (*GrpcServer) GetDCLocationInfo(_ context.Context, _ *pdpb.GetDCLocationInfoRequest) (*pdpb.GetDCLocationInfoResponse, error) {
return &pdpb.GetDCLocationInfoResponse{

Check warning on line 2761 in server/grpc_service.go

View check run for this annotation

Codecov / codecov/patch

server/grpc_service.go#L2760-L2761

Added lines #L2760 - L2761 were not covered by tests
Header: wrapHeader(),
}, nil

Check warning on line 2763 in server/grpc_service.go

View check run for this annotation

Codecov / codecov/patch

server/grpc_service.go#L2763

Added line #L2763 was not covered by tests
Expand Down

0 comments on commit fe3fdd1

Please sign in to comment.