Skip to content

Conversation

@appleboy
Copy link
Member

// ChangeMaxInFlight sets a new maximum number of messages this comsumer instance
// will allow in-flight, and updates all existing connections as appropriate.
//
// For example, ChangeMaxInFlight(0) would pause message flow
//
// If already connected, it updates the reader RDY state for each connection.

  1. Change MaxInFlight
  2. wait for stop channel

Signed-off-by: Bo-Yi Wu [email protected]

@appleboy appleboy merged commit 8345198 into main Sep 19, 2021
@appleboy appleboy deleted the shutdown branch September 19, 2021 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants