Refactoring: remove Connection::sendWithResponse

This commit is contained in:
2021-01-25 01:25:52 +03:00
parent 33ef674e58
commit 66b5b77bef
3 changed files with 7 additions and 9 deletions

View File

@ -15,7 +15,7 @@ final class Consumer extends Connection
{
$buffer = sprintf('SUB %s %s', $topic, $channel).PHP_EOL;
$this->sendWithResponse($buffer)->okOrFail();
$this->send($buffer)->response()->okOrFail();
}
/**