Skip to content

Commit

Permalink
Revert "127.0.0.1 -> localhost in one spot, to match everywher else"
Browse files Browse the repository at this point in the history
This reverts commit 66152cf.

There might be an issue with the websocket library, reverting for now
out of caution.
  • Loading branch information
Ericson2314 committed Sep 24, 2021
1 parent 66152cf commit 39d15e5
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 "localhost" 8080 ("/ws/" ++ contractId) $ \conn -> do
(eitherObState', endTime) <- WS.runClient "127.0.0.1" 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 39d15e5

Please sign in to comment.