dev-consumer-timeout-fix #7

Merged
ffabi1997 merged 5 commits from dev-consumer-timeout-fix into dev 2020-05-08 20:05:34 +02:00
Showing only changes of commit 7fbd62659d - Show all commits

View File

@ -11,9 +11,9 @@ class SyncView(FlaskView):
remote_uuid = request.json['uuid']
remote_ip = request.remote_addr
cust_key = f"customer_{remote_uuid}"
cust_key = f"consumer_{remote_uuid}"
last_known_info = json.loads((redis_client.get("cust_key") or b"{}").decode('utf-8'))
last_known_info = json.loads((redis_client.get(cust_key) or b"{}").decode('utf-8'))
if not last_known_info:
current_app.logger.info(f"New consumer registered (unknown UUID): {remote_uuid} at {remote_ip}")