Skip to content

Commit bf6f5bf

Browse files
authored
Dispatch the update secrets (#362)
- Dispatch to all the pool connections Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 915ae8a commit bf6f5bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RabbitMQ.Stream.Client/StreamSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public async Task UpdateSecret(string newSecret)
161161
await _client.UpdateSecret(newSecret).ConfigureAwait(false);
162162
_clientParameters.Password = newSecret;
163163
_client.Parameters.Password = newSecret;
164-
164+
await PoolConsumers.UpdateSecrets(newSecret).ConfigureAwait(false);
165+
await PoolProducers.UpdateSecrets(newSecret).ConfigureAwait(false);
165166
}
166167

167168
public async Task<ISuperStreamProducer> CreateRawSuperStreamProducer(

0 commit comments

Comments
 (0)