dev-consumer-timeout-fix #7
@ -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}")
|
||||
|
Reference in New Issue
Block a user