From cc468b7a6a2db2a30d0d65d80e570b01c2928cb1 Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Wed, 10 Apr 2024 22:06:09 +0200 Subject: [PATCH] Remove double'd code slowing down Raids Worker with ReceivedType.UNDEFINED (#1381) --- mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py b/mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py index 3eca3826b..4f860ba41 100644 --- a/mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py +++ b/mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py @@ -92,11 +92,7 @@ async def __handle_proto_data_dict(self, origin: str, data: dict) -> None: # TODO: dataclass for data passed in decoded_raw_proto: bytes = ProtoHelper.decode(data["payload"]) data["payload"] = decoded_raw_proto - await self._get_mitm_mapper().update_latest(origin, timestamp_received_raw=timestamp, - timestamp_received_receiver=time_received, - key=str(proto_type), - value=decoded_raw_proto, - location=location_of_data) + if proto_type == ProtoIdentifier.GMO.value: # TODO: Offload transformation gmo: pogoprotos.GetMapObjectsOutProto = ProtoHelper.parse(ProtoIdentifier.GMO, decoded_raw_proto)