Skip to content

Commit 8866df4

Browse files
author
Tibor Barna
committed
Added reset functionality to rpc client to be able to reuse the service even after one on the requests has no response
1 parent c14de14 commit 8866df4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

RabbitMq/RpcClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,10 @@ public function setDirectReplyTo($directReplyTo)
115115
{
116116
$this->directReplyTo = $directReplyTo;
117117
}
118+
119+
public function reset()
120+
{
121+
$this->replies = array();
122+
$this->requests = 0;
123+
}
118124
}

0 commit comments

Comments
 (0)