feat: update
This commit is contained in:
		@@ -110,7 +110,7 @@ async def receive_heartbeat(ip: str):
 | 
			
		||||
 | 
			
		||||
async def receive_heartbeat_internal():
 | 
			
		||||
    while 1:
 | 
			
		||||
        timeout = 7
 | 
			
		||||
        timeout = 70
 | 
			
		||||
        # 删除超时的节点
 | 
			
		||||
        cursor.execute("DELETE FROM nodes WHERE last_heartbeat < ?", (time.time() - timeout,))
 | 
			
		||||
        conn.commit()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user