kopia lustrzana https://github.com/snarfed/bridgy-fed
				
				
				
			atproto_firehose subscriber: delay reconnecting on exception as well as disconnect
							rodzic
							
								
									ae4c758d44
								
							
						
					
					
						commit
						9e5d7fa3ac
					
				|  | @ -122,10 +122,10 @@ def subscriber(): | |||
|          while True: | ||||
|             try: | ||||
|                 subscribe() | ||||
|                 logger.info(f'disconnected! waiting {RECONNECT_DELAY} and then reconnecting') | ||||
|                 time.sleep(RECONNECT_DELAY.total_seconds()) | ||||
|             except BaseException: | ||||
|                 report_exception() | ||||
|             logger.info(f'disconnected! waiting {RECONNECT_DELAY} and then reconnecting') | ||||
|             time.sleep(RECONNECT_DELAY.total_seconds()) | ||||
| 
 | ||||
| 
 | ||||
| def subscribe(): | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Ryan Barrett
						Ryan Barrett