Skip to content

Commit

Permalink
resource_control: consider default as a normal group (#741)
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch authored Mar 16, 2023
1 parent 9d95090 commit ad4d155
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/client/client_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ func buildResourceControlInterceptor(
return nil
}
resourceGroupName := req.GetResourceGroupName()
// When the group name is empty or "default", we don't need to
// perform the resource control.
if len(resourceGroupName) == 0 || resourceGroupName == "default" {
// When the group name is empty we don't need to perform the resource control.
if len(resourceGroupName) == 0 {
return nil
}
// No resource group interceptor is set.
Expand Down

0 comments on commit ad4d155

Please sign in to comment.