Skip to content

Commit

Permalink
[chain-index]: fix the problem with not starting web server (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Akentev authored and bwbush committed Mar 11, 2022
1 parent 1c6a479 commit 66b1886
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plutus-chain-index/src/Plutus/ChainIndex/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ runMain logConfig config = do
syncChainIndex config runReq syncHandler

(trace :: Trace IO (PrettyObject SyncLog), _) <- setupTrace_ logConfig "chain-index"
withAsync (runLogEffects (convertLog PrettyObject trace) $ logProgress chan) wait

let port = show (Config.cicPort config)
putStrLn $ "Starting webserver on port " <> port
putStrLn $ "A Swagger UI for the endpoints are available at "
<> "http://localhost:" <> port <> "/swagger/swagger-ui"
Server.serveChainIndexQueryServer (Config.cicPort config) runReq
withAsync (runLogEffects (convertLog PrettyObject trace) $ logProgress chan) $ \logAsync -> do
let port = show (Config.cicPort config)
putStrLn $ "Starting webserver on port " <> port
putStrLn $ "A Swagger UI for the endpoints are available at "
<> "http://localhost:" <> port <> "/swagger/swagger-ui"
Server.serveChainIndexQueryServer (Config.cicPort config) runReq
wait logAsync

0 comments on commit 66b1886

Please sign in to comment.