1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 08:25:19 +03:00

Update Semantic.Config to use envLookupNum

This commit is contained in:
Rick Winfrey 2018-08-21 14:46:15 -07:00
parent 5ea5798aac
commit ddff2144ac

View File

@ -68,8 +68,8 @@ defaultConfig options@Options{..} = do
isTerminal <- hIsTerminalDevice stderr
haystackURL <- lookupEnv "HAYSTACK_URL"
(statsHost, statsPort) <- lookupStatsAddr
size <- envLookupInt 1000 "MAX_TELEMETRY_QUEUE_SIZE"
parseTimeout <- envLookupInt 10000 "TREE_SITTER_PARSE_TIMEOUT" -- Default is 10 seconds
size <- envLookupNum 1000 "MAX_TELEMETRY_QUEUE_SIZE"
parseTimeout <- envLookupNum 10000 "TREE_SITTER_PARSE_TIMEOUT" -- Default is 10 seconds
pure Config
{ configAppName = "semantic"
, configHostName = hostName