Skip to content

Commit

Permalink
Update Producer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usualtool authored Apr 13, 2022
1 parent d9b53ce commit 4081f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Producer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public function Send($message){
$conf = new \RdKafka\Conf();
$conf->set("metadata.broker.list",$this->host);
$producer = new \RdKafka\Producer($conf);
$topic = $producer->newTopic($this->topic);
$topic->produce(RD_KAFKA_PARTITION_UA,0,$message);
$topics = $producer->newTopic($this->topic);
$topics->produce(RD_KAFKA_PARTITION_UA,0,$message);
$producer->poll(0);
}
}

0 comments on commit 4081f06

Please sign in to comment.