mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 02:13:15 +02:00
peer+server+htlcswitch: add reason to disconnnect function
In order to recognize exact reason of the disconnect the additional field have been added in the disconnect function.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
46ba18db9b
commit
ef73062c14
@@ -99,5 +99,5 @@ type Peer interface {
|
||||
|
||||
// Disconnect disconnects with peer if we have error which we can't
|
||||
// properly handle.
|
||||
Disconnect()
|
||||
Disconnect(reason error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user