This is an automated email from the ASF dual-hosted git repository.

blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new f6c1eb2  Missing some .ConfigureAwait(false)
f6c1eb2 is described below

commit f6c1eb24faffb25a86764728c22beecc1ed5ece7
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Tue Aug 22 10:36:41 2023 +0200

    Missing some .ConfigureAwait(false)
---
 src/DotPulsar/Internal/ConsumerProcess.cs | 2 +-
 src/DotPulsar/Internal/ProducerProcess.cs | 4 ++--
 src/DotPulsar/Internal/ReaderProcess.cs   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/DotPulsar/Internal/ConsumerProcess.cs 
b/src/DotPulsar/Internal/ConsumerProcess.cs
index 6c3584a..3cc0bee 100644
--- a/src/DotPulsar/Internal/ConsumerProcess.cs
+++ b/src/DotPulsar/Internal/ConsumerProcess.cs
@@ -51,7 +51,7 @@ public sealed class ConsumerProcess : Process
         {
             var formerState = _stateManager.SetState(ConsumerState.Faulted);
             if (formerState != ConsumerState.Faulted)
-                ActionQueue.Enqueue(async _ => await 
_consumer.ChannelFaulted(Exception!));
+                ActionQueue.Enqueue(async _ => await 
_consumer.ChannelFaulted(Exception!).ConfigureAwait(false));
             return;
         }
 
diff --git a/src/DotPulsar/Internal/ProducerProcess.cs 
b/src/DotPulsar/Internal/ProducerProcess.cs
index fc25af7..c61e331 100644
--- a/src/DotPulsar/Internal/ProducerProcess.cs
+++ b/src/DotPulsar/Internal/ProducerProcess.cs
@@ -1,4 +1,4 @@
-/*
+/*
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -50,7 +50,7 @@ public sealed class ProducerProcess : Process
             var newState = Exception! is ProducerFencedException ? 
ProducerState.Fenced : ProducerState.Faulted;
             var formerState = _stateManager.SetState(newState);
             if (formerState != ProducerState.Faulted && formerState != 
ProducerState.Fenced)
-                ActionQueue.Enqueue(async _ => await 
_producer.ChannelFaulted(Exception!));
+                ActionQueue.Enqueue(async _ => await 
_producer.ChannelFaulted(Exception!).ConfigureAwait(false));
             return;
         }
 
diff --git a/src/DotPulsar/Internal/ReaderProcess.cs 
b/src/DotPulsar/Internal/ReaderProcess.cs
index 09ad54f..9ab1cf3 100644
--- a/src/DotPulsar/Internal/ReaderProcess.cs
+++ b/src/DotPulsar/Internal/ReaderProcess.cs
@@ -48,7 +48,7 @@ public sealed class ReaderProcess : Process
         {
             var formerState = _stateManager.SetState(ReaderState.Faulted);
             if (formerState != ReaderState.Faulted)
-                ActionQueue.Enqueue(async _ => await 
_reader.ChannelFaulted(Exception!));
+                ActionQueue.Enqueue(async _ => await 
_reader.ChannelFaulted(Exception!).ConfigureAwait(false));
             return;
         }
 

Reply via email to