Skip to content

Commit

Permalink
increase default timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Sukharev <[email protected]>
  • Loading branch information
smacker committed Nov 13, 2018
1 parent 94d0a2e commit a89a307
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Below is the list of different timeouts with default values:
timeout:
analyzer_review: 5m
analyzer_push: 30m
github_request: 3s
github_request: 30s
git_fetch: 10m
bblfsh_parse: 10s
bblfsh_parse: 60s
```
2 changes: 1 addition & 1 deletion provider/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func NewClient(
}

if timeout == 0 {
timeout = 3 * time.Second
timeout = 30 * time.Second
}

return &Client{
Expand Down
2 changes: 1 addition & 1 deletion service/bblfsh/bblfsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewService(
parseTimeout time.Duration,
) *Service {
if parseTimeout == 0 {
parseTimeout = 10 * time.Second
parseTimeout = 60 * time.Second
}

return &Service{
Expand Down

0 comments on commit a89a307

Please sign in to comment.