Skip to content

Commit b8e53e3

Browse files
authored
Merge pull request #1933 from IntersectMBO/kderme/fix-offchain-limit
Fix offchain limit
2 parents 0f1d93f + 1fe8f02 commit b8e53e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cardano-db-sync/app/http-get-json-metadata.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ main = do
4545
Right bs -> bs
4646

4747
cleanOpt :: [String] -> [String]
48-
cleanOpt ls = List.delete "ga" $ List.delete "vote" $ List.delete "drep" $ List.delete "pool" ls
48+
cleanOpt ls = ls List.\\ ["url", "ga", "drep", "other", "vote", "committee_dereg", "const"]
4949

5050
getVoteType :: [String] -> Maybe OffChainVoteType
5151
getVoteType ls

cardano-db-sync/src/Cardano/DbSync/OffChain/Http.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ httpGetOffChainVoteDataSingle ::
105105
httpGetOffChainVoteDataSingle vurl metaHash anchorType = do
106106
manager <- liftIO $ Http.newManager tlsManagerSettings
107107
request <- parseOffChainUrl url
108-
let req = httpGetBytes manager request 10000 30000 url
108+
let req = httpGetBytes manager request 300000 300000 url
109109
httpRes <- handleExceptT (convertHttpException url) req
110110
(respBS, respLBS, mContentType) <- hoistEither httpRes
111111
(ocvd, decodedValue, metadataHash, mWarning) <- parseAndValidateVoteData respBS respLBS metaHash anchorType (Just $ OffChainVoteUrl vurl)

0 commit comments

Comments
 (0)