Skip to content

Commit

Permalink
Clearer comment
Browse files Browse the repository at this point in the history
  • Loading branch information
berewt committed Apr 1, 2023
1 parent df51aa1 commit c584116
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion marconi-core/src/Marconi/Core/Experiment.hs
Expand Up @@ -54,6 +54,7 @@ import Control.Tracer (Tracer, traceWith)
import Control.Concurrent qualified as STM
import Control.Concurrent.STM (TChan, TMVar)
import Control.Concurrent.STM qualified as STM
import Control.Monad.RWS (MonadWriter (pass))
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Maybe (MaybeT (MaybeT, runMaybeT))
import Data.Foldable (foldlM, foldrM, traverse_)
Expand Down Expand Up @@ -133,7 +134,10 @@ isNotAheadOfSync p indexer = maybe False (p <=) <$> lastSyncPoint indexer
data QueryError desc
= AheadOfLastSync !(Maybe (Result desc))
-- ^ The required point is ahead of the current index.
-- The error may still provide its latest result if it make sense.
-- The error may still provide its latest result if it make sense for the given query.
--
-- It can be useful for indexer that contains a partial knowledge and that want to pass
-- this knowledge to another indexer to complete the query.
| NotStoredAnymore
-- ^ The requested point is too far in the past and has been aggregated
| IndexerError !Text
Expand Down

0 comments on commit c584116

Please sign in to comment.