Skip to content

Timeout#137

Open
kaizencodes wants to merge 5 commits into
masterfrom
timeout
Open

Timeout#137
kaizencodes wants to merge 5 commits into
masterfrom
timeout

Conversation

@kaizencodes
Copy link
Copy Markdown
Contributor

Comment thread lib/bookingsync/api/client.rb Outdated
@@ -314,7 +314,11 @@ def middleware
end

def faraday_options
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to allow top override them? i.e. replace this part of initializer:
@conn = Faraday.new(faraday_options)
with:
@conn = Faraday.new(faraday_options.merge(options.fetch(:faraday_options, {}))) (but in more readable way )

@kaizencodes kaizencodes changed the title [wip] Timeout Timeout Nov 4, 2019
@kaizencodes
Copy link
Copy Markdown
Contributor Author

@StoneFrog updated, another complication is the faraday update on master. we can't use it on channels, so I've rebased the pr onto v11

Copy link
Copy Markdown
Contributor

@StoneFrog StoneFrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be worth to document that change as well, code-wise it's ok

@kaizencodes
Copy link
Copy Markdown
Contributor Author

I guess we don't need to deploy this, just use the version I've pushed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants