Skip to content

Commit cda6f72

Browse files
committed
Add $seconds to keepalive methods
1 parent 99fb5f1 commit cda6f72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Transport/BeanstalkdReceiver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function reject(Envelope $envelope): void
6565
$this->connection->reject($this->findBeanstalkdReceivedStamp($envelope)->getId());
6666
}
6767

68-
public function keepalive(Envelope $envelope): void
68+
public function keepalive(Envelope $envelope, ?int $seconds = null): void
6969
{
7070
$this->connection->keepalive($this->findBeanstalkdReceivedStamp($envelope)->getId());
7171
}

Transport/BeanstalkdTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public function reject(Envelope $envelope): void
4949
$this->getReceiver()->reject($envelope);
5050
}
5151

52-
public function keepalive(Envelope $envelope): void
52+
public function keepalive(Envelope $envelope, ?int $seconds = null): void
5353
{
54-
$this->getReceiver()->keepalive($envelope);
54+
$this->getReceiver()->keepalive($envelope, $seconds);
5555
}
5656

5757
public function getMessageCount(): int

0 commit comments

Comments
 (0)