Skip to content

Commit

Permalink
Abort classic client if connected to nitro feed
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 authored and hkalodner committed May 23, 2022
1 parent d923b2f commit f4bbe91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/arb-util/broadcastclient/broadcastclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ func (bc *BroadcastClient) startBackgroundReader(ctx context.Context, messageRec
if res.ConfirmedAccumulator.IsConfirmed && bc.ConfirmedAccumulatorListener != nil {
bc.ConfirmedAccumulatorListener <- res.ConfirmedAccumulator.Accumulator
}
} else if res.Version == 2 {
logger.Fatal().Int("version", res.Version).Msg("connected to nitro feed with classic client")
} else {
logger.Fatal().Int("version", res.Version).Msg("unrecognized feed version")
}
}
}
Expand Down

0 comments on commit f4bbe91

Please sign in to comment.