From d040bc1b32afca278ac6cc2398a12ce5bca6b701 Mon Sep 17 00:00:00 2001 From: MSalopek Date: Tue, 10 Sep 2024 17:13:09 +0200 Subject: [PATCH] apply review comments --- x/ccv/provider/types/keys.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x/ccv/provider/types/keys.go b/x/ccv/provider/types/keys.go index 8dc78a5421..0c7907ec62 100644 --- a/x/ccv/provider/types/keys.go +++ b/x/ccv/provider/types/keys.go @@ -680,16 +680,16 @@ func ConsumerIdToPowerShapingParametersKey(consumerId string) []byte { return StringIdWithLenKey(mustGetKeyPrefix(ConsumerIdToPowerShapingParameters), consumerId) } -// ConsumerIdToPhaseKey returns the key used to store the phase that corresponds to this consumer id -func ConsumerIdToPhaseKey(consumerId string) []byte { - return StringIdWithLenKey(mustGetKeyPrefix(ConsumerIdToPhaseKeyName), consumerId) -} - // ConsumerIdToPhaseKeyPrefix returns the key prefix used to iterate over all the consumer ids and their phases. func ConsumerIdToPhaseKeyPrefix() byte { return mustGetKeyPrefix(ConsumerIdToPhaseKeyName) } +// ConsumerIdToPhaseKey returns the key used to store the phase that corresponds to this consumer id +func ConsumerIdToPhaseKey(consumerId string) []byte { + return StringIdWithLenKey(ConsumerIdToPhaseKeyPrefix(), consumerId) +} + // ConsumerIdToRemovalTimeKeyPrefix returns the key prefix for storing the removal times of consumer chains // that are about to be removed func ConsumerIdToRemovalTimeKeyPrefix() byte {