diff --git a/errors.toml b/errors.toml index 5024fd17f59..9bfd4a79190 100644 --- a/errors.toml +++ b/errors.toml @@ -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 diff --git a/pkg/errs/errno.go b/pkg/errs/errno.go index edebfe9f9e9..e5c23cffde2 100644 --- a/pkg/errs/errno.go +++ b/pkg/errs/errno.go @@ -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")) diff --git a/server/grpc_service.go b/server/grpc_service.go index f2e5586673d..3aa07e841ff 100644 --- a/server/grpc_service.go +++ b/server/grpc_service.go @@ -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{ Header: wrapHeader(), }, nil