mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-06 06:26:15 +01:00
use bg ctx / capture error
This commit is contained in:
@@ -63,7 +63,7 @@ func (svc *LndhubService) StartRabbitMqPublisher(ctx context.Context) error {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return fmt.Errorf("context canceled")
|
||||
return context.Canceled
|
||||
case incoming := <-incomingInvoices:
|
||||
svc.publishInvoice(ctx, incoming, ch)
|
||||
case outgoing := <-outgoingInvoices:
|
||||
|
||||
Reference in New Issue
Block a user