simple symbol renaming for txThrottleFlag

pull/1319/head
Dennis Won 5 years ago
parent 1d48c7c42c
commit b4c4f76546
  1. 20
      internal/configs/sharding/shardingconfig.go

@ -65,21 +65,21 @@ type TxThrottleFlag int
// Enum for different TxThrottleFlag // Enum for different TxThrottleFlag
const ( const (
Select TxThrottleFlag = iota TxSelect TxThrottleFlag = iota
Unselect TxUnselect
Invalid TxInvalid
) )
func (result TxThrottleFlag) String() string { func (result TxThrottleFlag) String() string {
switch result { switch result {
case Select: case TxSelect:
return "Select" return "TxSelect"
case Unselect: case TxUnselect:
return "Unselect" return "TxUnselect"
case Invalid: case TxInvalid:
return "Invalid" return "TxInvalid"
} }
return "Unknown" return "TxThrottleUnknown"
} }
// TxsThrottleConfig contains configuration for throttling pending transactions per node block // TxsThrottleConfig contains configuration for throttling pending transactions per node block

Loading…
Cancel
Save