Skip to content

Commit

Permalink
fix sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooksauce committed Sep 1, 2023
1 parent cf63315 commit 1092db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NATS.Client.Core/NatsConnection.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ValueTask PublishAsync(string subject, ReadOnlySequence<byte> payload = d
/// <inheritdoc />
public ValueTask PublishAsync(in NatsMsg msg, NatsPubOpts? opts = default, CancellationToken cancellationToken = default)
{
return PublishAsync(msg.Subject, msg.Data, opts, cancellationToken);
return PublishAsync(msg.Subject, new ReadOnlySequence<byte>(msg.Data), opts, cancellationToken);
}

/// <inheritdoc />
Expand Down

0 comments on commit 1092db3

Please sign in to comment.