simple symbol renaming for txThrottleFlag

pull/1319/head
Dennis Won 5 years ago
parent 46c93eb628
commit c001915e1a
  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