Skip to content

Commit b425b1b

Browse files
rbomfimHavret
authored andcommitted
Change RoutingAnnotation type to sbyte.
1 parent 85c7ea3 commit b425b1b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ActiveMQ.Artemis.Client/Extensions/RoutingTypeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ namespace ActiveMQ.Artemis.Client
55
{
66
internal static class RoutingTypeExtensions
77
{
8-
private static readonly object _addressRoutingTypeAnycast = (byte) 1;
9-
private static readonly object _addressRoutingTypeMulticast = (byte) 0;
8+
private static readonly object _addressRoutingTypeAnycast = (sbyte)1;
9+
private static readonly object _addressRoutingTypeMulticast = (sbyte) 0;
1010
private static readonly object _addressRoutingTypeBoth = null;
1111

1212
public static Symbol GetRoutingCapability(this RoutingType routingType) => routingType switch

test/ActiveMQ.Artemis.Client.UnitTests/ProducerSendMessageSpec.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ public static IEnumerable<object[]> RoutingTypesData()
133133
{
134134
return new[]
135135
{
136-
new object[] { RoutingType.Multicast, (byte) 0 },
137-
new object[] { RoutingType.Anycast, (byte) 1 },
136+
new object[] { RoutingType.Multicast, (sbyte) 0 },
137+
new object[] { RoutingType.Anycast, (sbyte) 1 },
138138
};
139139
}
140140
}

0 commit comments

Comments
 (0)