init channel

This commit is contained in:
kiwiidb
2022-02-04 11:01:37 +01:00
parent 856c4b5a1d
commit b9b5be9fd8

View File

@@ -29,7 +29,9 @@ type CLNClientOptions struct {
}
func NewCLNClient(options CLNClientOptions) (*CLNClient, error) {
handler := &InvoiceHandler{}
handler := &InvoiceHandler{
invoiceChan: make(chan *lnrpc.Invoice),
}
return &CLNClient{
handler: handler,
client: &cln.Client{