Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
hieblmi committed May 3, 2024
1 parent c57654a commit 1598664
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion network/backend/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ func (l Backend) SubscribeRoutingEvents(ctx context.Context, channelEvents chan
return err
}

skippedFirst := false
for {
select {
case <-ctx.Done():
Expand All @@ -251,7 +252,9 @@ func (l Backend) SubscribeRoutingEvents(ctx context.Context, channelEvents chan
return err
}

if len(event.GetSubscribedEvent().String()) > 0 {
if !skippedFirst {
skippedFirst = true
} else {
channelEvents <- protoToRoutingEvent(event)
}

Expand Down

0 comments on commit 1598664

Please sign in to comment.