Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Not calling flush can lead to message loss #7

Open
Walker-P opened this issue Dec 28, 2020 · 0 comments
Open

Not calling flush can lead to message loss #7

Walker-P opened this issue Dec 28, 2020 · 0 comments

Comments

@Walker-P
Copy link

Walker-P commented Dec 28, 2020

There is a bug,Not calling flush can lead to message loss.

public function publish($channel, $message)
{
$topic = $this->producer->newTopic($channel);
$topic->produce(RD_KAFKA_PARTITION_UA, 0, Utils::serializeMessage($message));
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant