We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c32575 commit a3e4a29Copy full SHA for a3e4a29
instantout/reservation/manager.go
@@ -64,7 +64,12 @@ func (m *Manager) Run(ctx context.Context, height int32) error {
64
log.Debugf("Received block %v", height)
65
currentHeight = height
66
67
- case reservationRes := <-ntfnChan:
+ case reservationRes, ok := <-ntfnChan:
68
+ if !ok {
69
+ // The channel has been closed, we'll stop the
70
+ // reservation manager.
71
+ return nil
72
+ }
73
log.Debugf("Received reservation %x",
74
reservationRes.ReservationId)
75
_, err := m.newReservation(
0 commit comments