Skip to content

Commit

Permalink
Fix function names in comments (#1816)
Browse files Browse the repository at this point in the history
Signed-off-by: verytrap <wangqiuyue@outlook.com>
  • Loading branch information
verytrap authored Apr 9, 2024
1 parent 3875c29 commit c286577
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion management/server/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (a *Account) getRoutesToSync(peerID string, aclPeers []*nbpeer.Peer) []*rou
return routes
}

// filterRoutesByHAMembership filters and returns a list of routes that don't share the same HA route membership
// filterRoutesFromPeersOfSameHAGroup filters and returns a list of routes that don't share the same HA route membership
func (a *Account) filterRoutesFromPeersOfSameHAGroup(routes []*route.Route, peerMemberships lookupMap) []*route.Route {
var filteredRoutes []*route.Route
for _, r := range routes {
Expand Down
2 changes: 1 addition & 1 deletion management/server/idp/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (om *OktaManager) DeleteUser(userID string) error {
return nil
}

// parseOktaUserToUserData parse okta user to UserData.
// parseOktaUser parse okta user to UserData.
func parseOktaUser(user *okta.User) (*UserData, error) {
var oktaUser struct {
Email string `json:"email"`
Expand Down
2 changes: 1 addition & 1 deletion management/server/mock_server/account_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ func (am *MockAccountManager) GetIdpManager() idp.Manager {
return nil
}

// UpdateIntegratedValidatedGroups mocks UpdateIntegratedApprovalGroups of the AccountManager interface
// UpdateIntegratedValidatorGroups mocks UpdateIntegratedApprovalGroups of the AccountManager interface
func (am *MockAccountManager) UpdateIntegratedValidatorGroups(accountID string, userID string, groups []string) error {
if am.UpdateIntegratedValidatorGroupsFunc != nil {
return am.UpdateIntegratedValidatorGroupsFunc(accountID, userID, groups)
Expand Down

0 comments on commit c286577

Please sign in to comment.