Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Fix NullConnMgr to respect ConnManager interface #15

Merged
merged 1 commit into from
Mar 29, 2019
Merged

Conversation

raulk
Copy link
Member

@raulk raulk commented Mar 29, 2019

Follow-up to #14.

@ghost ghost assigned raulk Mar 29, 2019
@ghost ghost added the in progress label Mar 29, 2019
func (_ NullConnMgr) GetTagInfo(peer.ID) *TagInfo { return &TagInfo{} }
func (_ NullConnMgr) TrimOpenConns(context.Context) {}
func (_ NullConnMgr) Notifee() inet.Notifiee { return &cmNotifee{} }
var _ ConnManager = (*NullConnMgr)(nil)
Copy link
Member Author

Choose a reason for hiding this comment

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

Added a type assertion here to make this scream in the future.

@raulk raulk merged commit e80dd2e into master Mar 29, 2019
@ghost ghost removed the in progress label Mar 29, 2019
@raulk raulk deleted the fix/null-connmgr branch March 29, 2019 19:54
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