From aa91c18e30eb10114c89e00d2ac1756bdebdeca2 Mon Sep 17 00:00:00 2001 From: Cong Zhao Date: Wed, 19 Jun 2019 13:34:37 +0800 Subject: [PATCH] clean according to review comments --- store/statesync_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/statesync_helper.go b/store/statesync_helper.go index f5704e5e7..1e6845d69 100644 --- a/store/statesync_helper.go +++ b/store/statesync_helper.go @@ -98,7 +98,7 @@ func (helper *StateSyncHelper) getCommitedSortedStoreKeys() []sdk.StoreKey { kvStores := helper.commitMS.GetCommitKVStores() names := make([]string, 0, len(kvStores)) nameToKey := make(map[string]sdk.StoreKey, len(kvStores)) - for key, store := range helper.commitMS.GetCommitKVStores() { + for key, store := range kvStores { if !sdk.ShouldCommitStore(key.Name()) { continue }