Skip to content

Commit

Permalink
Merge branch 'master' into config-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 5, 2024
2 parents 4704e75 + 3a6276d commit c2ced60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Lentille.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ data LentilleError = LentilleError UTCTime LentilleErrorKind
data LentilleErrorKind
= DecodeError [Text]
| RequestError GraphQLError
| PageInfoError GraphQLError
| RateLimitInfoError GraphQLError
| PartialErrors Value
deriving (Show, Generic, ToJSON)

Expand Down
2 changes: 1 addition & 1 deletion src/Lentille/GraphQL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ streamFetch client@GraphClient {..} mkArgs StreamFetchOptParams {..} transformRe
Nothing -> pure Nothing

case mErr of
Just err -> yieldStreamError $ PageInfoError $ mkGraphQLError err
Just err -> yieldStreamError $ RateLimitInfoError $ mkGraphQLError err
Nothing -> go Nothing 0

go pageInfoM totalFetched = do
Expand Down
2 changes: 1 addition & 1 deletion src/Macroscope/Worker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ processStream logFunc postFunc = go (0 :: Word) [] []
(crawlerErrorMessage, crawlerErrorBody) = case err of
DecodeError xs -> ("decode", encodeJSON xs)
RequestError e -> ("graph", encodeJSON e)
PageInfoError e -> ("page-info", encodeJSON e)
RateLimitInfoError e -> ("rate-limit-info", encodeJSON e)
PartialErrors es -> ("partial", encodeJSON es)

processBatch :: [DocumentType] -> Eff es (Maybe ProcessError)
Expand Down

0 comments on commit c2ced60

Please sign in to comment.