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

Inconsistency in documentation brought up by docc v6 #80

Merged
merged 2 commits into from
Sep 15, 2024
Merged

Conversation

adam-fowler
Copy link
Member

Also added deprecated version of function that is inconsistent parameter order

@@ -97,13 +96,23 @@ public struct HTTP1WebSocketUpgradeChannel: ServerChildChannel, HTTPChannelHandl
self.responder = responder
}

@available(*, deprecated, renamed: "init(responder:configuration:additionalChannelHandlers:shouldUpgrade:)")
Copy link
Member

Choose a reason for hiding this comment

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

What's this init needed for?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was the old init. Basically I got the arguments in the wrong order, so there was an inconsistency between the two init functions. So I've deprecated one of the old ones and replaced it with a new version with consistent argument order.

Co-authored-by: Joannis Orlandos <joannis@orlandos.nl>
@adam-fowler adam-fowler merged commit f37842a into main Sep 15, 2024
4 checks passed
@adam-fowler adam-fowler deleted the docc-changes branch September 15, 2024 15:44
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