Skip to content
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

Merged
merged 3 commits into from
Sep 19, 2022
Merged

[Relay] Retry on connection error #506

merged 3 commits into from
Sep 19, 2022

Conversation

flypaper0
Copy link
Contributor

Description

Resolves # (issue)

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

Copy link
Contributor

@llbartekll llbartekll left a 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) {
Copy link
Contributor

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.

@flypaper0 flypaper0 merged commit e583fea into develop Sep 19, 2022
@flypaper0 flypaper0 deleted the feature/relay-retry branch September 19, 2022 19:45
flypaper0 added a commit that referenced this pull request Sep 23, 2022
flypaper0 added a commit that referenced this pull request Sep 23, 2022
@flypaper0 flypaper0 mentioned this pull request Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants