mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Prepare log functions for filters. Init all filter functions by assigning empty stubs. #26
This commit is contained in:
@@ -175,9 +175,7 @@ func (peer *PeerInfo) registerConnection(incoming *Connection) (result *Connecti
|
||||
peer.connectionActive = append(peer.connectionActive, incoming)
|
||||
peer.setConnectionLatest(incoming)
|
||||
|
||||
if Filters.NewPeerConnection != nil {
|
||||
Filters.NewPeerConnection(peer, incoming)
|
||||
}
|
||||
Filters.NewPeerConnection(peer, incoming)
|
||||
|
||||
return incoming
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user