mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Update Semantic.Config
to use envLookupNum
This commit is contained in:
parent
5ea5798aac
commit
ddff2144ac
@ -68,8 +68,8 @@ defaultConfig options@Options{..} = do
|
|||||||
isTerminal <- hIsTerminalDevice stderr
|
isTerminal <- hIsTerminalDevice stderr
|
||||||
haystackURL <- lookupEnv "HAYSTACK_URL"
|
haystackURL <- lookupEnv "HAYSTACK_URL"
|
||||||
(statsHost, statsPort) <- lookupStatsAddr
|
(statsHost, statsPort) <- lookupStatsAddr
|
||||||
size <- envLookupInt 1000 "MAX_TELEMETRY_QUEUE_SIZE"
|
size <- envLookupNum 1000 "MAX_TELEMETRY_QUEUE_SIZE"
|
||||||
parseTimeout <- envLookupInt 10000 "TREE_SITTER_PARSE_TIMEOUT" -- Default is 10 seconds
|
parseTimeout <- envLookupNum 10000 "TREE_SITTER_PARSE_TIMEOUT" -- Default is 10 seconds
|
||||||
pure Config
|
pure Config
|
||||||
{ configAppName = "semantic"
|
{ configAppName = "semantic"
|
||||||
, configHostName = hostName
|
, configHostName = hostName
|
||||||
|
Loading…
Reference in New Issue
Block a user