Skip to content

Commit

Permalink
Change the option name from redelivery to requeue (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Nov 21, 2024
1 parent 1df9702 commit a1777e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Task/ReceivedTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function nack(string|\Stringable|\Throwable $message, bool $redelivery =
{
$this->respond(Type::NACK, [
'message' => (string) $message,
'redelivery' => $redelivery,
'requeue' => $redelivery,
'delay_seconds' => $this->delay,
]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Task/ReceivedTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function testNack(string $error, bool $redelivery, int|null $delay): void
'type' => Type::NACK,
'data' => [
'message' => $error,
'redelivery' => $redelivery,
'requeue' => $redelivery,
'delay_seconds' => (int) $delay,
],
];
Expand Down

0 comments on commit a1777e6

Please sign in to comment.