This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 3 files changed +3
-13
lines changed
infra/src/Pos/Infra/Slotting
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ delay :: (TimeUnit t, MonadIO m)
49
49
-> m ()
50
50
delay time = liftIO (Conc. threadDelay (fromIntegral (toMicroseconds time)))
51
51
52
- -- | This function is analogous to `System.Timeout.timeout`, it's
53
- -- based on `Race` and `Delay`.
54
- -- TODO mhueschen - make sure this is equivalent to the old method
52
+ -- | This function is analogous to `System.Timeout.timeout`. It's
53
+ -- based on `race` and `delay`.
55
54
timeout :: (TimeUnit t , MonadUnliftIO m ) => t -> m a -> m (Maybe a )
56
55
timeout t ma = rightToMaybe <$> race (delay t) ma
57
56
Original file line number Diff line number Diff line change @@ -111,10 +111,7 @@ type MonadOnNewSlot ctx m =
111
111
)
112
112
113
113
-- | Run given action as soon as new slot starts, passing SlotId to
114
- -- it. This function uses Mockable and assumes consistency between
115
- -- MonadSlots and Mockable implementations.
116
- -- TODO mhueschen ^ get feedback on what this comment means and what
117
- -- we should do about it.
114
+ -- it.
118
115
onNewSlot
119
116
:: (MonadOnNewSlot ctx m , HasProtocolConstants )
120
117
=> OnNewSlotParams -> (SlotId -> m () ) -> m ()
Original file line number Diff line number Diff line change @@ -141,12 +141,6 @@ newWalletState recreate walletPath =
141
141
-- to rebuild the DB, but rather append stuff into it.
142
142
liftIO $ openState (not recreate) walletPath
143
143
144
- -- TODO mhueschen get feedback about usage of this module and whether
145
- -- the instance from `Pos.Core.Conc` can eclipse this.
146
- -- instance HasLoggerName IO where
147
- -- askLoggerName = pure $ LoggerName "dbgen"
148
- -- modifyLoggerName _ x = x
149
-
150
144
-- TODO(ks): Fix according to Pos.Client.CLI.Options
151
145
newConfig :: CLI -> ConfigurationOptions
152
146
newConfig CLI {.. } = defaultConfigurationOptions {
You can’t perform that action at this time.
0 commit comments