Skip to content

Commit 12b3982

Browse files
Nack/1 and Nack/2 can simply delegate to Nack/3
1 parent 1ec2743 commit 12b3982

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

projects/client/RabbitMQ.Client/src/client/messagepatterns/Subscription.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,7 @@ public void Ack(BasicDeliverEventArgs evt)
210210
///null.</summary>
211211
public void Nack(bool requeue)
212212
{
213-
lock(m_eventLock)
214-
{
215-
if (m_latestEvent != null) {
216-
Nack(m_latestEvent, false, requeue);
217-
}
218-
}
213+
Nack(m_latestEvent, false, requeue);
219214
}
220215

221216

@@ -224,12 +219,7 @@ public void Nack(bool requeue)
224219
///null.</summary>
225220
public void Nack(bool multiple, bool requeue)
226221
{
227-
lock(m_eventLock)
228-
{
229-
if (m_latestEvent != null) {
230-
Nack(m_latestEvent, multiple, requeue);
231-
}
232-
}
222+
Nack(m_latestEvent, multiple, requeue);
233223
}
234224

235225
///<summary>If we are not in "noAck" mode, calls

0 commit comments

Comments
 (0)