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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user