Skip to content

Commit

Permalink
Change default timeout to match API (90 seconds) (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev authored Mar 4, 2024
1 parent d97a9a5 commit fe73d9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### Unreleased
* Change default timeout to match API (90 seconds)

### 6.0.2 / 2024-02-27
* Fixed the HTTP operation of updating grants
* Fixed endpoint URL of rotating webhooks
Expand Down
2 changes: 1 addition & 1 deletion lib/nylas/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def initialize(api_key:,
timeout: nil)
@api_key = api_key
@api_uri = api_uri
@timeout = timeout || 30
@timeout = timeout || 90
end

# The application resources for your Nylas application.
Expand Down
4 changes: 2 additions & 2 deletions spec/nylas/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

expect(nylas.api_key).to eq("fake-key")
expect(nylas.api_uri).to eq("https://api.us.nylas.com")
expect(nylas.timeout).to eq(30)
expect(nylas.timeout).to eq(90)
end
end

Expand All @@ -18,7 +18,7 @@

expect(nylas.api_key).to eq("fake-key")
expect(nylas.api_uri).to eq("https://custom.nylas.com")
expect(nylas.timeout).to eq(30)
expect(nylas.timeout).to eq(90)
end
end

Expand Down

0 comments on commit fe73d9c

Please sign in to comment.