Skip to content

Commit

Permalink
Dispatch the update secrets (#362)
Browse files Browse the repository at this point in the history
- Dispatch to all the pool connections

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
  • Loading branch information
Gsantomaggio authored Feb 23, 2024
1 parent 915ae8a commit bf6f5bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RabbitMQ.Stream.Client/StreamSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public async Task UpdateSecret(string newSecret)
await _client.UpdateSecret(newSecret).ConfigureAwait(false);
_clientParameters.Password = newSecret;
_client.Parameters.Password = newSecret;

await PoolConsumers.UpdateSecrets(newSecret).ConfigureAwait(false);
await PoolProducers.UpdateSecrets(newSecret).ConfigureAwait(false);
}

public async Task<ISuperStreamProducer> CreateRawSuperStreamProducer(
Expand Down

0 comments on commit bf6f5bf

Please sign in to comment.