Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
  • Loading branch information
binshi-bing committed Apr 11, 2023
1 parent 54aa71c commit 0df4320
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/tso/keyspace_group_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ func (kgm *KeyspaceGroupManager) GetAMWithMembershipCheck(
}

// GetElectionMember returns the election member of the given keyspace group
// TODO: support multiple keyspace groups for GetElectionMember
func (kgm *KeyspaceGroupManager) GetElectionMember(
keyspaceID, keyspaceGroupID uint32,
) (ElectionMember, error) {
Expand Down Expand Up @@ -642,7 +641,7 @@ func (kgm *KeyspaceGroupManager) checkKeySpaceGroupID(id uint32) error {
return nil
}
return errs.ErrKeyspaceGroupIDInvalid.FastGenByArgs(
fmt.Sprintf("%d which shouldn't >= %d", id, mcsutils.MaxKeyspaceGroupCountInUse))
fmt.Sprintf("%d shouldn't >= %d", id, mcsutils.MaxKeyspaceGroupCountInUse))
}

func (kgm *KeyspaceGroupManager) genNotServedErr(perr *perrors.Error, keyspaceGroupID uint32) error {
Expand Down

0 comments on commit 0df4320

Please sign in to comment.