Skip to content

Commit

Permalink
Fix backward compatibility topic resolution (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraliv13 authored Feb 1, 2024
1 parent 96588ec commit 027aa46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public string GetTopicForMessageType(Type messageType, bool includePrefix = true
static string Prepend(string prefix, string str)
=> str.StartsWith(prefix) ? str : $"{prefix}{str}";

if (typeof(IRequest<Unit>).IsAssignableFrom(messageType))
if (typeof(IRequest).IsAssignableFrom(messageType))
{
topic = Prepend("ch.commands.", topic);
}
Expand Down

0 comments on commit 027aa46

Please sign in to comment.