Skip to content

Commit

Permalink
Jassobxif
Browse files Browse the repository at this point in the history
  • Loading branch information
Rembane committed Sep 27, 2023
1 parent 7351c1a commit 5a6fc48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ main =
-- 2. Webserver that serves the menus to the user
-- 3. Updater that fetches new data from the restaurants
Async.runConcurrently $ traverse_ Async.Concurrently
[ timer
[ timer upd
, webserver config viewRef upd
, updater
, updater mgr upd
]
where
timer = forever $ tryPutMVar upd () >> threadDelay (view cInterval config)
timer upd = forever $ tryPutMVar upd () >> threadDelay (view cInterval config)

updater =
updater mgr upd =
forever
$ withFDHandler defaultBatchingOptions stdout 1.0 80
$ \logCallback ->
Expand Down

0 comments on commit 5a6fc48

Please sign in to comment.