mirror of https://github.com/tikv/client-go.git
resource_control: consider default as a normal group (#741)
Signed-off-by: nolouch <nolouch@gmail.com>
This commit is contained in:
parent
9d950905d7
commit
ad4d1554b3
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue