Skip to content

Commit 9daa1b2

Browse files
author
Matt Howlett
authored
Fix timeout in exactly once example (#1673)
1 parent 348c4e3 commit 9daa1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ExactlyOnce/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static void Processor_MapWords(string brokerList, string clientId, CancellationT
420420
// to wait a bit and retry.
421421
if (e.Error.Code == ErrorCode.Local_QueueFull)
422422
{
423-
Thread.Sleep(TimeSpan.FromSeconds(1000));
423+
Thread.Sleep(TimeSpan.FromMilliseconds(1000));
424424
continue;
425425
}
426426
throw;

0 commit comments

Comments
 (0)