Skip to content

Commit

Permalink
Merge pull request #1252 from ripienaar/csv
Browse files Browse the repository at this point in the history
Correctly handle stdin for consumers check
  • Loading branch information
ripienaar authored Jan 24, 2025
2 parents a5f69d5 + c19f2db commit 80bbf99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/server_consumer_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (c *ConsumerCheckCmd) consumerCheck(_ *fisk.ParseContext) error {
var err error
var nc *nats.Conn

if !c.csv {
if !c.stdin {
nc, _, err = prepareHelper(opts().Servers, natsOpts()...)
if err != nil {
return err
Expand All @@ -93,7 +93,7 @@ func (c *ConsumerCheckCmd) consumerCheck(_ *fisk.ParseContext) error {

sys := sysclient.New(nc)

if !c.csv {
if !c.stdin {
if c.expected == 0 {
c.expected, err = currentActiveServers(nc)
if err != nil {
Expand Down

0 comments on commit 80bbf99

Please # to comment.