thread in a state
This commit is contained in:
parent
69c4f07ab0
commit
0bdee626ad
2 changed files with 62 additions and 46 deletions
|
@ -22,5 +22,7 @@ cmd = command "p2phttp" SectionPlumbing
|
|||
paramNothing (withParams seek)
|
||||
|
||||
seek :: CmdParams -> CommandSeek
|
||||
seek ["server"] = liftIO $ Warp.run 8080 p2pHttpApp
|
||||
seek ["server"] = liftIO $ do
|
||||
st <- mkP2PHttpServerState
|
||||
Warp.run 8080 (p2pHttpApp st)
|
||||
seek ["client"] = liftIO testClientLock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue