Skip to content

Commit 9e85e63

Browse files
authored
fix incorrect grain message typename (#1968)
1 parent d2ed63b commit 9e85e63

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Proto.Cluster/Grain/GrainRequestMessage.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System;
88
using Google.Protobuf;
99
using Proto.Diagnostics;
10+
using Proto.Extensions;
1011
using Proto.Remote;
1112

1213
namespace Proto.Cluster;
@@ -43,9 +44,5 @@ public IRootSerialized Serialize(ActorSystem system)
4344
};
4445
}
4546

46-
public string GetTypeName()
47-
{
48-
var m = RequestMessage?.GetType().Name ?? "null";
49-
return m;
50-
}
47+
public string GetTypeName() => RequestMessage.GetMessageTypeName();
5148
}

0 commit comments

Comments
 (0)