Skip to content

Commit 14e6a51

Browse files
committed
Fixed an issue where the PublishDelay synchronization method did not wait internally.
1 parent 65cb6b2 commit 14e6a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNetCore.CAP/Internal/ICapPublisher.Default.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void Publish<T>(string name, T? value, IDictionary<string, string?> heade
102102

103103
public void PublishDelay<T>(TimeSpan delayTime, string name, T? value, IDictionary<string, string?> headers)
104104
{
105-
PublishDelayAsync(delayTime, name, value, headers).ConfigureAwait(false);
105+
PublishDelayAsync(delayTime, name, value, headers).ConfigureAwait(false).GetAwaiter().GetResult();
106106
}
107107

108108
public void PublishDelay<T>(TimeSpan delayTime, string name, T? value, string? callbackName = null)

0 commit comments

Comments
 (0)