@@ -202,8 +202,6 @@ import Pos.Infra.Util.LogSafe (BuildableSafeGen (..), SecureLog (..),
202
202
buildSafe , buildSafeList , buildSafeMaybe ,
203
203
deriveSafeBuildable , plainOrSecureF )
204
204
import Pos.Util.Servant (Flaggable (.. ))
205
- import Pos.Wallet.Web.ClientTypes.Instances ()
206
- import qualified Pos.Wallet.Web.State.Storage as OldStorage
207
205
import Test.Pos.Core.Arbitrary ()
208
206
209
207
@@ -928,31 +926,31 @@ instance ToSchema EstimatedCompletionTime where
928
926
)
929
927
)
930
928
931
-
932
- newtype SyncThroughput = SyncThroughput (MeasuredIn 'BlocksPerSecond OldStorage. SyncThroughput )
929
+ newtype SyncThroughput
930
+ = SyncThroughput (MeasuredIn 'BlocksPerSecond Core. BlockCount )
933
931
deriving (Show , Eq )
934
932
935
933
mkSyncThroughput :: Core. BlockCount -> SyncThroughput
936
- mkSyncThroughput = SyncThroughput . MeasuredIn . OldStorage. SyncThroughput
934
+ mkSyncThroughput = SyncThroughput . MeasuredIn
937
935
938
936
instance Ord SyncThroughput where
939
- compare (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount b1) )))
940
- (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount b2) ))) =
937
+ compare (SyncThroughput (MeasuredIn (Core. BlockCount b1)))
938
+ (SyncThroughput (MeasuredIn (Core. BlockCount b2))) =
941
939
compare b1 b2
942
940
943
941
instance Arbitrary SyncThroughput where
944
- arbitrary = SyncThroughput . MeasuredIn . OldStorage. SyncThroughput <$> arbitrary
942
+ arbitrary = SyncThroughput . MeasuredIn <$> arbitrary
945
943
946
944
deriveSafeBuildable ''SyncThroughput
947
945
instance BuildableSafeGen SyncThroughput where
948
- buildSafeGen _ (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount blocks) ))) = bprint (" {"
946
+ buildSafeGen _ (SyncThroughput (MeasuredIn (Core. BlockCount blocks))) = bprint (" {"
949
947
% " quantity=" % build
950
948
% " unit=blocksPerSecond"
951
949
% " }" )
952
950
blocks
953
951
954
952
instance ToJSON SyncThroughput where
955
- toJSON (SyncThroughput (MeasuredIn (OldStorage. SyncThroughput ( Core. BlockCount blocks) ))) =
953
+ toJSON (SyncThroughput (MeasuredIn (Core. BlockCount blocks))) =
956
954
object [ " quantity" .= toJSON blocks
957
955
, " unit" .= String " blocksPerSecond"
958
956
]
0 commit comments