Skip to content

Commit

Permalink
Fix socket not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Apr 7, 2021
1 parent 9a83f70 commit 14d35b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plutus-pab/src/Cardano/Node/Server.hs
Expand Up @@ -18,11 +18,13 @@ import Control.Concurrent (MVar, forkIO, modifyMVar_, ne
import Control.Concurrent.Availability (Availability, available)
import Control.Lens (over, set)
import Control.Monad (void)
import Control.Monad.Freer.Delay (delayThread, handleDelayEffect)
import Control.Monad.Freer.Extras.Log (logInfo)
import Control.Monad.IO.Class (liftIO)
import Data.Function ((&))
import qualified Data.Map.Strict as Map
import Data.Proxy (Proxy (Proxy))
import Data.Time.Units (Second)
import Ledger (Block, Slot (..))
import qualified Ledger.Ada as Ada
import qualified Network.Wai.Handler.Warp as Warp
Expand Down Expand Up @@ -68,6 +70,7 @@ main trace MockServerConfig { mscBaseUrl
}
serverHandler <- liftIO $ Server.runServerNode mscSocketPath (_chainState appState)
serverState <- liftIO $ newMVar appState
handleDelayEffect $ delayThread (2 :: Second)
clientHandler <- liftIO $ Client.runClientNode mscSocketPath (updateChainState serverState)

let ctx = Ctx serverHandler clientHandler serverState trace
Expand Down

0 comments on commit 14d35b6

Please sign in to comment.