summaryrefslogtreecommitdiff
path: root/server/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'server/Main.hs')
-rw-r--r--server/Main.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/Main.hs b/server/Main.hs
index 8b41c92..660b69e 100644
--- a/server/Main.hs
+++ b/server/Main.hs
@@ -12,9 +12,8 @@ module Main where
import Universum
-import Cli.Extras (mkDefaultCliConfig)
import Control.Concurrent (threadDelay)
-import Control.Concurrent.Async (async, waitEither_)
+import Control.Concurrent.Async (async, link, waitEither_)
import Control.Concurrent.STM.TQueue (TQueue, newTQueueIO,
writeTQueue)
import qualified Data.Text as T
@@ -81,7 +80,6 @@ main = do
queue :: TQueue Job <- newTQueueIO
-- TODO: i really don't like all this cli logging stuff, replace it with
-- fast-logger at some point …
- cliconfig <- liftIO $ mkDefaultCliConfig ["-v" | view verbose config]
loggerMiddleware <- mkRequestLogger
$ def { outputFormat = Detailed (view verbose config) }
@@ -99,7 +97,9 @@ main = do
threadDelay (view interval config * 1000000)
-- spawns threads for each job in the queue
- linter <- async $ void $ linterThread config cliconfig queue state
+ linter <- async $ void $ linterThread config queue state
+ link linter
+ link poker
let warpsettings =
setPort (view port config)