Skip to content

Commit

Permalink
Remove double'd code slowing down Raids Worker with ReceivedType.UNDE…
Browse files Browse the repository at this point in the history
…FINED (#1381)
  • Loading branch information
JabLuszko authored Apr 10, 2024
1 parent a763dd3 commit cc468b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mapadroid/mitm_receiver/endpoints/ReceiveProtosEndpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc468b7

Please sign in to comment.