Skip to content

Commit

Permalink
fix prefix
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <[email protected]>
  • Loading branch information
okJiang committed Jan 22, 2025
1 parent 8de091e commit 8c088d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/utils/keypath/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func ConfigPath() string {

// SchedulerConfigPathPrefix returns the path prefix to save the scheduler config.
func SchedulerConfigPathPrefix() string {
return Prefix(SchedulerConfigPath(""))
return SchedulerConfigPath("")
}

// SchedulerConfigPath returns the path to save the scheduler config.
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/keypath/resource_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func ResourceGroupStatePath(groupName string) string {

// ResourceGroupSettingPrefix returns the prefix of the resource group settings.
func ResourceGroupSettingPrefix() string {
return Prefix(ResourceGroupSettingPath(""))
return ResourceGroupSettingPath("")
}

// ResourceGroupStatePrefix returns the prefix of the resource group states.
func ResourceGroupStatePrefix() string {
return Prefix(ResourceGroupStatePath(""))
return ResourceGroupStatePath("")
}
6 changes: 3 additions & 3 deletions pkg/utils/keypath/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

// RulesPathPrefix returns the path prefix to save the placement rules.
func RulesPathPrefix() string {
return Prefix(RuleKeyPath(""))
return RuleKeyPath("")
}

// RuleKeyPath returns the path to save the placement rule with the given rule key.
Expand All @@ -45,10 +45,10 @@ func RegionLabelKeyPath(ruleKey string) string {

// RuleGroupPathPrefix returns the path prefix to save the placement rule groups.
func RuleGroupPathPrefix() string {
return Prefix(RuleGroupIDPath(""))
return RuleGroupIDPath("")
}

// RegionLabelPathPrefix returns the path prefix to save the region label.
func RegionLabelPathPrefix() string {
return Prefix(RegionLabelKeyPath(""))
return RegionLabelKeyPath("")
}
4 changes: 2 additions & 2 deletions pkg/utils/keypath/safe_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func GCSafePointPath() string {

// GCSafePointServicePrefixPath returns the GC safe point service key path prefix.
func GCSafePointServicePrefixPath() string {
return Prefix(GCSafePointServicePath(""))
return GCSafePointServicePath("")
}

// GCSafePointServicePath returns the GC safe point service key path with the given service ID.
Expand All @@ -46,7 +46,7 @@ func ServiceSafePointV2Path(keyspaceID uint32, serviceID string) string {
// ServiceSafePointV2Prefix is the path prefix of all service safe point that belongs to a specific keyspace.
// Can be used to retrieve keyspace's service safe point at once.
func ServiceSafePointV2Prefix(keyspaceID uint32) string {
return Prefix(ServiceSafePointV2Path(keyspaceID, ""))
return ServiceSafePointV2Path(keyspaceID, "")
}

// GCSafePointV2Prefix is the path prefix to all gc safe point v2.
Expand Down

0 comments on commit 8c088d7

Please sign in to comment.