Skip to content

Commit

Permalink
127.0.0.1 -> localhost in one spot, to match everywher else
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Sep 24, 2021
1 parent cc81c60 commit 66152cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion use-case-2/backend/src/Backend.hs
Expand Up @@ -287,7 +287,7 @@ executeSwap httpManager pool contractId (coinA, amountA) (coinB, amountB) = do
-- MVar that will hold response to swap request sent
eitherObState <- newEmptyMVar
-- Use websocket connection to fetch observable state response
(eitherObState', endTime) <- WS.runClient "127.0.0.1" 8080 ("/ws/" ++ contractId) $ \conn -> do
(eitherObState', endTime) <- WS.runClient "localhost" 8080 ("/ws/" ++ contractId) $ \conn -> do
-- Allow enough time to pass for observable state to be updated (10 secs)
let processData = do
incomingData :: ByteString <- WS.receiveData conn
Expand Down

0 comments on commit 66152cf

Please sign in to comment.