Skip to content

Commit

Permalink
fix ES path string
Browse files Browse the repository at this point in the history
  • Loading branch information
giantimi committed Jan 30, 2024
1 parent 8149fd2 commit 3ea6401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec/TXG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ mkElasticSearchRequest esConf version start end rks = do
}
where
idxName :: String
idxName = printf "chainweb-%s-%s" (T.unpack $ chainwebVersionToText version) (maybe "" show $ esIndex esConf)
idxName = printf "chainweb-%s-%s" (T.unpack $ chainwebVersionToText version) (fromMaybe "" $ esIndex esConf)
body now = HTTP.RequestBodyLBS $ mkItem $ mkElasticSearchPayload start end rks now
mkItem x = "{\"index\":{}}" <> "\n" <> encode x <> "\n"
mkElasticSearchPayload :: Int64 -> Int64 -> RequestKeys -> Int64 -> Value
Expand Down

0 comments on commit 3ea6401

Please sign in to comment.