aboutsummaryrefslogtreecommitdiff
path: root/hsm-dummy-receiver
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-14 15:58:56 -0800
committerPaul Oliver <contact@pauloliver.dev>2025-01-24 16:34:31 -0800
commit7c360b79ee2e3230e6e5fe76c102dd688f9cf7b9 (patch)
tree6ab893160c4d50a09d24f593a5dd4541efa1c43a /hsm-dummy-receiver
parentdd9aa4a851829c792fc034d3169ef7e90ea899b4 (diff)
Adds minimal documentation
Diffstat (limited to 'hsm-dummy-receiver')
-rw-r--r--hsm-dummy-receiver/Main.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hsm-dummy-receiver/Main.hs b/hsm-dummy-receiver/Main.hs
index c0aa98a..78b343f 100644
--- a/hsm-dummy-receiver/Main.hs
+++ b/hsm-dummy-receiver/Main.hs
@@ -33,6 +33,9 @@ handle = S.fold S.drain . S.mapM handler
handler p =
localDomain "receiver" $ logInfo_ $ "Received pulse #" <> pack (show p)
+-- Dummy receiver service:
+-- Proof of concept. Listens for "pulses" through ZMQ and logs each time one
+-- is received.
main :: IO ()
main =
launch @Env "dummy-receiver" withoutInputEcho $ \env logger level ->