Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CBR-275] cleanup interface required for structured logging
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Diemand <[email protected]>
  • Loading branch information
CodiePP committed Sep 2, 2018
1 parent 3e76205 commit ca66350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions auxx/src/Command/Update.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ import Pos.Crypto (Hash, ProtocolMagic, emptyPassphrase, hash,
hashHexF, unsafeHash, withSafeSigner, withSafeSigners)
import Pos.Infra.Diffusion.Types (Diffusion (..))
import Pos.Network.Update.Download (installerHash)
import Pos.Util.Wlog (CanLog, HasLoggerName, logDebug, logError,
logInfo)
import Pos.Util.Wlog (WithLogger, logDebug, logError, logInfo)

import Lang.Value (ProposeUpdateParams (..), ProposeUpdateSystem (..))
import Mode (MonadAuxxMode)
Expand Down Expand Up @@ -105,7 +104,7 @@ updateDataElement ProposeUpdateSystem{..} = do
dummyHash :: Hash Raw
dummyHash = unsafeHash (0 :: Integer)

hashFile :: (CanLog m, HasLoggerName m, MonadIO m) => Maybe FilePath -> m (Hash Raw)
hashFile :: (WithLogger m, MonadIO m) => Maybe FilePath -> m (Hash Raw)
hashFile Nothing = pure dummyHash
hashFile (Just filename) = do
fileData <- liftIO $ BSL.readFile filename
Expand Down
3 changes: 1 addition & 2 deletions wallet/src/Pos/Wallet/Web/Tracking/Sync.hs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,6 @@ calculateEstimatedRemainingTime (WS.SyncThroughput blocks) remainingBlocks =
-- | Apply the given 'CAccModifier' to a wallet.
applyModifierToWallet
:: ( CanLog m
, HasLoggerName m
, MonadIO m
)
=> WalletDB
Expand Down Expand Up @@ -773,7 +772,7 @@ applyModifierToWallet db trackingOperation wid newBlockHeaderTip CAccModifier{..
newSyncState

rollbackModifierFromWallet
:: (CanLog m, HasLoggerName m, MonadSlots ctx m)
:: (CanLog m, MonadSlots ctx m)
=> ProtocolConstants
-> WalletDB
-> TrackingOperation
Expand Down

0 comments on commit ca66350

Please sign in to comment.