Skip to content

Replace ProxyServer connection pointer with reference #11

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

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

ryanofsky
Copy link
Collaborator

This is just cleanup. Using a pointer instead of reference used to be necessary
before the Connection constructor took a make_server option. But now there is
no reason to have a pointer and unnecessary null handling.

Also, Connection add_client option and AddClient RemoveClient ServeStream
wrapper functions are removed. These were originally meant to simplify usages
but cause more trouble than they are worth.

This is just cleanup. Using a pointer instead of reference used to be necessary
before the Connection constructor took a make_server option. But now there is
no reason to have a pointer and unnecessary null handling.

Also, Connection add_client option and AddClient RemoveClient ServeStream
wrapper functions are removed. These were originally meant to simplify usages
but cause more trouble than they are worth.
ryanofsky added a commit that referenced this pull request Aug 19, 2019
e7687db Replace ProxyServer connection pointer with reference (Russell Yanofsky)

Pull request description:

  This is just cleanup. Using a pointer instead of reference used to be necessary
  before the Connection constructor took a make_server option. But now there is
  no reason to have a pointer and unnecessary null handling.

  Also, Connection add_client option and AddClient RemoveClient ServeStream
  wrapper functions are removed. These were originally meant to simplify usages
  but cause more trouble than they are worth.

Top commit has no ACKs.

Tree-SHA512: a566d5b7b228a412c6bb9184f24e72a288719ea6f28bdc39bbbfe2c05436fa7f9ef8301988781374db765be846e2a5ad38de73e118115b4bce5dfabc2efc3f9e
@ryanofsky ryanofsky merged commit e7687db into bitcoin-core:master Aug 19, 2019
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant