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

Channel Detach #298

Merged
merged 27 commits into from
May 17, 2021
Merged

Channel Detach #298

merged 27 commits into from
May 17, 2021

Conversation

sacOO7
Copy link
Collaborator

@sacOO7 sacOO7 commented Mar 16, 2021

@sacOO7 sacOO7 requested a review from tcard March 31, 2021 20:07
@sacOO7
Copy link
Collaborator Author

sacOO7 commented Mar 31, 2021

Most of the spec items are covered as a part of tests, till pending/skipped spec test item test is written, you can take a look @tcard

@sacOO7 sacOO7 marked this pull request as ready for review April 3, 2021 21:32
@sacOO7 sacOO7 changed the base branch from integration/1.2 to ably-1.2/readme April 15, 2021 21:40
@sacOO7 sacOO7 changed the base branch from ably-1.2/readme to integration/1.2 April 15, 2021 21:40
@tcard
Copy link
Contributor

tcard commented Apr 16, 2021

@sacOO7 Unfortunately this PR now includes multiple commits that seem to have been rebased from integration/1.2. Can you please push with just the commits that are actually new?

@sacOO7 sacOO7 force-pushed the fix/212-channel-detach branch from ddcccfb to e1dbf75 Compare April 17, 2021 10:34
@sacOO7 sacOO7 requested a review from tcard April 18, 2021 05:55
}, nil
}
}

func (c ConnTransitioner) failOnIntercept(msg <-chan *proto.ProtocolMessage, cancelIntercept func()) connTransitionFunc {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a similar finishConnecting function that takes an error; if nil, finishConnecting transitions to CONNECTED; if non-nil, it transitions to FAILED.

I suggest doing the same with finishClosing. It took me a while to understand what failOnIntercept does. I believe it would be easier to understand if it was made clear it's supposed to be called in the context of having sent a CLOSE and being waiting a response.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe, finishConnecting transitions to disconnected if error is passed as param

Copy link
Contributor

Choose a reason for hiding this comment

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

True. Anyway, that's besides the point of the suggestion, really.

@sacOO7 sacOO7 requested a review from tcard April 20, 2021 16:41
@sacOO7 sacOO7 requested a review from tcard April 26, 2021 19:05
@tcard
Copy link
Contributor

tcard commented May 7, 2021

Besides a few suggestions, this is the only feedback that needs addressing.

@sacOO7
Copy link
Collaborator Author

sacOO7 commented May 17, 2021

Merging channel detach PR, since approved by both parties : )

@sacOO7 sacOO7 merged commit 1bf1b20 into integration/1.2 May 17, 2021
@sacOO7 sacOO7 deleted the fix/212-channel-detach branch May 17, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants