Skip to content

Commit

Permalink
Ensure selectedConsumer by requesting ConsumerInfo, when calling sele…
Browse files Browse the repository at this point in the history
…ctConsumer

Signed-off-by: Maurice van Veen <[email protected]>
  • Loading branch information
MauriceVanVeen authored and ripienaar committed Mar 6, 2024
1 parent 68d57dd commit e236df1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ func selectConsumer(mgr *jsm.Manager, stream string, consumer string, force bool
return "", nil, err
}

return c, nil, nil
con, err := mgr.LoadConsumer(stream, c)
if err != nil {
return "", nil, err
}
return con.Name(), con, err
}
}

Expand Down

0 comments on commit e236df1

Please sign in to comment.