From 5c4a7448b5c5a916742a9b575518eef6e6874e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20H=C3=A9cart?= Date: Wed, 3 Mar 2021 10:10:42 +0100 Subject: [PATCH] Improve data routing --- zenoh/src/net/routing/pubsub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenoh/src/net/routing/pubsub.rs b/zenoh/src/net/routing/pubsub.rs index a4286c8ec..e8f957e6a 100644 --- a/zenoh/src/net/routing/pubsub.rs +++ b/zenoh/src/net/routing/pubsub.rs @@ -965,7 +965,7 @@ pub async fn route_data( ) .unwrap() .index(); - match Resource::get_resource(prefix, suffix) { + match &res { Some(res) => res.routers_data_routes[local_context].clone(), None => compute_data_route( tables,