add WaitForShutdown method to the server, additional logging

This commit is contained in:
Olaoluwa Osuntokun committed 2016-03-22 18:49:22 -07:00
1 parent d9922dc76d
commit 555003006b
2 files changed
+22 -14

No files matched your search

+2
View File
@@ -94,6 +94,7 @@ func (r *rpcServer) NewAddress(ctx context.Context, in *lnrpc.NewAddressRequest)
return nil, err
}
rpcsLog.Infof("Generated new address: %v", addr.String())
return &lnrpc.NewAddressResponse{Address: addr.String()}, nil
}
@@ -114,5 +115,6 @@ func (r *rpcServer) ConnectPeer(ctx context.Context,
return nil, err
}
rpcsLog.Infof("Connected to peer: %v", peerAddr.String())
return &lnrpc.ConnectPeerResponse{[]byte(peerAddr.String())}, nil
}