Skip to content

Commit cd85af5

Browse files
authored
Fixed bug in TopicFormatter (#8333)
1 parent 61d4e32 commit cd85af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HotChocolate/Core/src/Subscriptions/TopicFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public string Format(string topic)
4444
var hashSpan = hashBytes.AsSpan();
4545
if (bytesWritten < 16)
4646
{
47-
hashSpan.Slice(0, bytesWritten);
47+
hashSpan = hashSpan[..bytesWritten];
4848
}
4949

5050
var topicString = Convert.ToHexString(hashSpan);

0 commit comments

Comments
 (0)