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

@@ -21,7 +21,7 @@ final class Producer extends Connection
$buffer = 'PUB '.$topic.PHP_EOL.$size.$body;
$this->sendWithResponse($buffer)->okOrFail();
$this->send($buffer)->response()->okOrFail();
}
/**
@@ -41,7 +41,7 @@ final class Producer extends Connection
$buffer = 'MPUB '.$topic.PHP_EOL.$size.$num.$mb;
$this->sendWithResponse($buffer)->okOrFail();
$this->send($buffer)->response()->okOrFail();
}
/**
@@ -53,6 +53,6 @@ final class Producer extends Connection
$buffer = sprintf('DPUB %s %s', $topic, $deferTime).PHP_EOL.$size.$body;
$this->sendWithResponse($buffer)->okOrFail();
$this->send($buffer)->response()->okOrFail();
}
}