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
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

Loading…
Cancel
Save