1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Change the defaults to 6 and 4.

This commit is contained in:
Patrick Thomson 2018-10-23 12:19:12 -04:00
parent 95ffd19e6e
commit 5dba69bd8f

View File

@ -71,8 +71,9 @@ defaultConfig options@Options{..} = do
haystackURL <- lookupEnv "HAYSTACK_URL" haystackURL <- lookupEnv "HAYSTACK_URL"
(statsHost, statsPort) <- lookupStatsAddr (statsHost, statsPort) <- lookupStatsAddr
size <- envLookupNum 1000 "MAX_TELEMETRY_QUEUE_SIZE" size <- envLookupNum 1000 "MAX_TELEMETRY_QUEUE_SIZE"
parseTimeout <- envLookupNum 10000 "TREE_SITTER_PARSE_TIMEOUT" -- Default is 10 seconds -- Defaults for these values are commensurate with the Dockerfile
assignTimeout <- envLookupNum 10000 "TREE_SITTER_ASSIGNMENT_TIMEOUT" -- Same for assignment parseTimeout <- envLookupNum 6000 "TREE_SITTER_PARSE_TIMEOUT"
assignTimeout <- envLookupNum 4000 "TREE_SITTER_ASSIGNMENT_TIMEOUT"
pure Config pure Config
{ configAppName = "semantic" { configAppName = "semantic"
, configHostName = hostName , configHostName = hostName