Skip to content

Commit

Permalink
Let's see if this fixes the bug in protobuf-net
Browse files Browse the repository at this point in the history
  • Loading branch information
blankensteiner committed Jul 17, 2024
1 parent 469ac89 commit 6448b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DotPulsar/Internal/Serializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace DotPulsar.Internal;

public static class Serializer
{
static Serializer() => Serialize(new BaseCommand()); //Let's see if this fixes the bug in protobuf-net

public static T Deserialize<T>(ReadOnlySequence<byte> sequence) => ProtoBuf.Serializer.Deserialize<T>(sequence);

public static ReadOnlySequence<byte> Serialize(BaseCommand command)
Expand Down

0 comments on commit 6448b84

Please sign in to comment.