Skip to content

Commit

Permalink
updating example to use multi
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbarber committed May 25, 2011
1 parent 00b12e2 commit a74d4cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions log/loglocal.php
Expand Up @@ -14,9 +14,7 @@
$messages[] = $message;
if(count($messages) == $bufferSize) {
echo "Forwarding Buffer", PHP_EOL;
foreach($messages as $id => $msg) {
$out->send($msg, $id == $bufferSize-1 ? null : ZMQ::MODE_SNDMORE);
}
$out->sendMulti($messages);
$messages = array();
}
}

0 comments on commit a74d4cf

Please sign in to comment.