forked from nspcc-dev/neo-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Having a peer manager would allow each module to call the peer mgr for and not need to deal with the Peers abstract itself. They would just need to know what message they would like to send.
Doing this however will cause an extra layer of dependency. Where moduleX depends on PeerMgr and PeerMgr depends on Peer.
Changing the peer would then cause the Mgr to behave differently, if part of the changed code effects the exposed functionality of Peer. This could in turn cause moduleX to behave differently and or break.