Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

请问这个跟swoole怎么结合使用? #266

Open
kirachen1991 opened this issue May 28, 2019 · 0 comments
Open

请问这个跟swoole怎么结合使用? #266

kirachen1991 opened this issue May 28, 2019 · 0 comments

Comments

@kirachen1991
Copy link

go( function() use ( &$consumer, &$messages ){
$consumer->start( function( $topic, $part, $message ) use ( &$messages ){
// 完全不会收到任何的message
if( isset( $messages[ $topic ] ) ){
$messages[ $topic ][] = $message;
}else{
Log::error([
$topic, $part, $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