1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

[gate] Dead code elimination

Using __rpc_register_queue makes unnecessary any old reference to
__rpc_requests_in_progress, which makes all more confusing.

Signed-off-by: Simone Libutti <simone.libutti@ibtsystems.it>
This commit is contained in:
Simone Libutti
2021-05-12 17:16:41 +02:00
parent aa4d29176f
commit f2880556df

View File

@@ -613,7 +613,6 @@ class TBGatewayService:
def register_rpc_request_timeout(self, content, timeout, topic, cancel_method):
# Put request in outgoing RPC queue. It will be eventually dispatched.
self.__rpc_register_queue.put({"topic": topic, "data": (content, timeout, cancel_method)}, False)
# self.__rpc_requests_in_progress[topic] = (content, timeout, cancel_method)
def cancel_rpc_request(self, rpc_request):
content = self.__rpc_requests_in_progress[rpc_request][0]