Closed Gilthoniel closed 2 months ago
Fixes #1259
When calling Flush or FlushWithCtx after closing the producer, it will panic.
Check the state of the producer before proceeding with a flush and return an error if it is closed already.
This change added tests and can be verified as follows:
None
Fixes #1259
Motivation
When calling Flush or FlushWithCtx after closing the producer, it will panic.
Modifications
Check the state of the producer before proceeding with a flush and return an error if it is closed already.
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
None
Documentation