改名
This commit is contained in:
@@ -81,8 +81,14 @@ class Queue extends \Snowflake\Process\Process
|
|||||||
*/
|
*/
|
||||||
public function delivery(Consumer $consumer, $score = 0)
|
public function delivery(Consumer $consumer, $score = 0)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
|
$consumer->onWaiting();
|
||||||
|
} catch (\Throwable $exception) {
|
||||||
|
$this->application->error($exception->getMessage());
|
||||||
|
} finally {
|
||||||
$this->waiting->add($consumer, $score);
|
$this->waiting->add($consumer, $score);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class BaseObject implements Configure
|
|||||||
* @param string $message
|
* @param string $message
|
||||||
* @param string|null $method
|
* @param string|null $method
|
||||||
* @param string|null $file
|
* @param string|null $file
|
||||||
* @throws Exception
|
* @throws
|
||||||
*/
|
*/
|
||||||
public function error($message, $method = null, $file = null)
|
public function error($message, $method = null, $file = null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user