Fix stringly typed oneof in OrderTypeVM
This commit is contained in:
1 parent
fa19edb6ba
commit
4b4eed91f0
1 file changed
+1
-1
@@ -23,7 +23,7 @@ namespace mbts.spark {
|
||||
is_bts_type = order.Descriptor.Name.StartsWith("BTS", StringComparison.CurrentCultureIgnoreCase);
|
||||
algo_type = OrderDataHelper.get_algo_type(order);
|
||||
_accessor = Order.Descriptor.Oneofs
|
||||
.First(ood => ood.Name == "algo_order_type")
|
||||
.First(ood => ood.Name == "AlgoOrderType")
|
||||
.Fields
|
||||
.First(f => f.MessageType == order.Descriptor)
|
||||
.Accessor;
|
||||
|
||||
Reference in new issue
Block a user