big work #2
@@ -50,7 +50,7 @@ class ConsumerCommunicator:
 | 
				
			|||||||
            ip = info['ip']
 | 
					            ip = info['ip']
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                # request synchronization
 | 
					                # request synchronization
 | 
				
			||||||
                response = requests.post(f"http://{ip}/sync", json={'uuid': os.environ['LOCAL_UUID']}, timeout=5)
 | 
					                response = self._session.post(f"http://{ip}/sync", json={'uuid': os.environ['LOCAL_UUID']}, timeout=5)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as e:
 | 
					            except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as e:
 | 
				
			||||||
                logging.error(f"Error while syncing to {ip}: {str(e)}")
 | 
					                logging.error(f"Error while syncing to {ip}: {str(e)}")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user