Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jul 4, 2023
1 parent 94f2431 commit be30d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/keyspace/tso_keyspace_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ func (m *GroupManager) FinishMergeKeyspaceByID(mergeTargetID uint32) error {
return nil
}

// GetKeyspaceGroupPrimaryByID returns the primary node of the keyspace group by ID.
func (m *GroupManager) GetKeyspaceGroupPrimaryByID(id uint32) (string, error) {
// default keyspace group: "/ms/{cluster_id}/tso/00000/primary".
// non-default keyspace group: "/ms/{cluster_id}/tso/keyspace_groups/election/{group}/primary".
Expand Down
1 change: 1 addition & 0 deletions server/apiv2/handlers/tso_keyspace_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ func SetPriorityForKeyspaceGroup(c *gin.Context) {
c.JSON(http.StatusOK, nil)
}

// GetKeyspaceGroupPrimaryByID gets primary of keyspace group by ID.
func GetKeyspaceGroupPrimaryByID(c *gin.Context) {
id, err := validateKeyspaceGroupID(c)
if err != nil {
Expand Down

0 comments on commit be30d79

Please sign in to comment.