on master help sign in
Fix main: explicit effect row, _ <- listenOn, {} as final pure value
commit8b2823105e93e7a641304ed99685c4c6b0bf2e85 authoriko <mail@iko.soy> dateSat 11 Jul 2026, 12:20 (3 months ago) parent5a73090
1 file changed+3−2
server.knot+3−2
server.knot+3−2
@@ -1317,10 +1317,11 @@ backgroundRetryForwards = do
13171317-- Fork the background prune loop (which runs an immediate sweep on its
13181318-- first tick) and start the HTTP listener. The forward-retry loop only
13191319-- runs when federation is enabled.
1320−main : IO {| r} {}
1320+main : IO {network, console, clock, random, r *challenges, r *forwardFailures, r *forwards, r *messages, r *presence, r *seqCounter, r *sessions, w *challenges, w *forwardFailures, w *forwards, w *messages, w *presence, w *seqCounter, w *sessions} {}
13211321main = do
13221322 _ <- logInfo ("Skrepka relay server starting on " ++ bindHost ++ ":" ++ show listenPort ++ " ...")
13231323 _ <- logInfo (" federation: " ++ (if federationEnabled then "enabled" else "disabled"))
13241324 _ <- fork backgroundPrune
13251325 _ <- when federationEnabled (fork backgroundRetryForwards)
1326− listenOn bindHost listenPort api
1326+ _ <- listenOn bindHost listenPort api
1327+ {}