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

shrink Connection interface #33

Merged
merged 2 commits into from Mar 24, 2016
Merged

shrink Connection interface #33

merged 2 commits into from Mar 24, 2016

Conversation

rade
Copy link
Member

@rade rade commented Mar 23, 2016

RemoteConnection represents information about connections that another peer has. As such it does not need tie breaking, logging or shutdown.

For testing we need mock LocalConnections, so we introduce an interface, imaginatively named LConnection, which both the real and mock LocalConnections implement.

LConnection should be renamed to something better.

RemoteConnection represents information about connections that another
peer has. As such it does not need tie breaking, logging or shutdown.

For testing we need mock LocalConnections, so we introduce an
interface, imaginatively named LConnection, which both the real and
mock LocalConnections implement.
remoteTCPAddress() string
isOutbound() bool
isEstablished() bool
}

type LConnection interface {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@peterbourgon peterbourgon merged commit 16cb49a into master Mar 24, 2016
@peterbourgon peterbourgon deleted the shrink-connection branch March 24, 2016 10:03
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.

None yet

2 participants