summaryrefslogtreecommitdiff
path: root/src/Network.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-12-29 21:39:19 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2020-12-30 21:47:58 +0100
commitcc132e005f974577c2ff782add7df8247c4eb541 (patch)
tree8fde890ef80e33fc1b4b81d4176d642157a29a12 /src/Network.hs
parentb2d1f57098ae12a22fe7511eb765c39158600d17 (diff)
Discovery service
Diffstat (limited to 'src/Network.hs')
-rw-r--r--src/Network.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Network.hs b/src/Network.hs
index e09b343..7bb9fea 100644
--- a/src/Network.hs
+++ b/src/Network.hs
@@ -363,7 +363,9 @@ startServer opt origHead logd' services = do
Just (SomeServiceGlobalState (_ :: Proxy gs) gs))
| Just (Refl :: s :~: gs) <- eqT -> do
let inp = ServiceInput
- { svcPeer = peerId
+ { svcPeer = peer
+ , svcPeerIdentity = peerId
+ , svcServer = server
, svcPrintOp = atomically . logd
}
reloadHead origHead >>= \case