From b4c4f76546f58574f457488ed1e3515445b9ca24 Mon Sep 17 00:00:00 2001 From: Dennis Won Date: Fri, 9 Aug 2019 08:47:08 -0700 Subject: [PATCH] simple symbol renaming for txThrottleFlag --- internal/configs/sharding/shardingconfig.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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