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:
1 parent
46ba18db9b
commit
ef73062c14
5 files changed
+35
-51
No files matched your search
+1
-1
@@ -260,7 +260,7 @@ func (s *mockServer) PubKey() [33]byte {
|
||||
return s.id
|
||||
}
|
||||
|
||||
func (s *mockServer) Disconnect() {
|
||||
func (s *mockServer) Disconnect(reason error) {
|
||||
s.Stop()
|
||||
s.t.Fatalf("server %v was disconnected", s.name)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user