From 1574b5b7cbcdfec78c41e9cb9a80e3c4217a1e01 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Tue, 29 Apr 2025 23:46:09 +0300 Subject: [PATCH] Revert "[routing] Do not create TrafficStash instance." This reverts commit 3c12ba5134f2aa9d19c0c9a54af89d368f389eb4. --- routing/index_router.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index 3de70fffa..d87ed514a 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -130,10 +130,13 @@ unique_ptr CreateDirectionsEngine(VehicleType vehicleType, UNREACHABLE(); } -shared_ptr CreateTrafficStash(VehicleType, shared_ptr, traffic::TrafficCache const &) +shared_ptr CreateTrafficStash(VehicleType vehicleType, shared_ptr numMwmIds, + traffic::TrafficCache const & trafficCache) { - return nullptr; - //return (vehicleType == VehicleType::Car ? make_shared(trafficCache, numMwmIds) : nullptr); + if (vehicleType != VehicleType::Car) + return nullptr; + + return make_shared(trafficCache, numMwmIds); } void PushPassedSubroutes(Checkpoints const & checkpoints, vector & subroutes)