Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the resource control client #648

Merged
merged 13 commits into from
Jan 20, 2023
Prev Previous commit
Next Next commit
Refine the code
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed Jan 19, 2023
commit f24b7314ff70757bc3295f73879cbaec612721ff
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
"github.com/tikv/client-go/v2/internal/logutil"
"github.com/tikv/client-go/v2/oracle"
"github.com/tikv/client-go/v2/util"
"github.com/tikv/pd/pkg/mcs/resource_manager/client"
resourceControlClient "github.com/tikv/pd/pkg/mcs/resource_manager/client"
"go.uber.org/zap"
)

Expand Down Expand Up @@ -79,7 +79,7 @@ type Config struct {
TxnScope string
EnableAsyncCommit bool
Enable1PC bool
ResourceControl client.RequestUnitConfig
ResourceControl resourceControlClient.RequestUnitConfig
}

// DefaultConfig returns the default configuration.
Expand All @@ -97,7 +97,7 @@ func DefaultConfig() Config {
TxnScope: "",
EnableAsyncCommit: false,
Enable1PC: false,
ResourceControl: *client.DefaultRequestUnitConfig(),
ResourceControl: *resourceControlClient.DefaultRequestUnitConfig(),
}
}

Expand Down