-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Relay] Retry on connection error #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, I would just move the protectedSend method to dispatcher
} | ||
} | ||
|
||
private func protectedSend(_ string: String, timeout: Int = 5, completion: @escaping (Error?) -> Void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move it to dispatcher.
Relay client is responsible for client<->relay interactions - subscribe/publish etc.
dispatcher is responsible for managing behaviour/policy of sending requests - unaware of the protocol methods etc.
and protectedSend
to me sounds more like dispatcher responsibility.
5dde7ad
to
e8a2762
Compare
Description
Resolves # (issue)
How Has This Been Tested?
Due Dilligence