diff --git a/internal/configs/sharding/shardingconfig.go b/internal/configs/sharding/shardingconfig.go index 060fa07c5..5ecec75ff 100644 --- a/internal/configs/sharding/shardingconfig.go +++ b/internal/configs/sharding/shardingconfig.go @@ -65,21 +65,21 @@ type TxThrottleFlag int // Enum for different TxThrottleFlag const ( - Select TxThrottleFlag = iota - Unselect - Invalid + TxSelect TxThrottleFlag = iota + TxUnselect + TxInvalid ) func (result TxThrottleFlag) String() string { switch result { - case Select: - return "Select" - case Unselect: - return "Unselect" - case Invalid: - return "Invalid" + case TxSelect: + return "TxSelect" + case TxUnselect: + return "TxUnselect" + case TxInvalid: + return "TxInvalid" } - return "Unknown" + return "TxThrottleUnknown" } // TxsThrottleConfig contains configuration for throttling pending transactions per node block