Skip to content

Commit

Permalink
fix sending username in creating and removing producer consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b committed Jul 18, 2023
1 parent 6b1d5f3 commit 71aacfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Memphis.Client/MemphisClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public MemphisClient(Options brokerConnOptions, IConnection brokerConnection,
_jetStreamContext = jetStreamContext ?? throw new ArgumentNullException(nameof(jetStreamContext));
_connectionId = connectionId ?? throw new ArgumentNullException(nameof(connectionId));
_userName = brokerConnOptions.User;
int usernameSeparatorIndex = _userName.LastIndexOf('$');
if (usernameSeparatorIndex >= 0)
{
_userName = _userName.Substring(0, usernameSeparatorIndex);
}

_cancellationTokenSource = new();

Expand Down

0 comments on commit 71aacfc

Please sign in to comment.