Move tsdb section to `service.tsdb.name` and get host from `.maddrs`
							parent
							
								
									653348fcd8
								
							
						
					
					
						commit
						a382f01c85
					
				|  | @ -177,7 +177,7 @@ async def open_storage_client( | ||||||
|     # TODO: maybe not under a "network" section.. since |     # TODO: maybe not under a "network" section.. since | ||||||
|     # no more chitty `marketstore`.. |     # no more chitty `marketstore`.. | ||||||
|     tsdbconf: dict = {} |     tsdbconf: dict = {} | ||||||
|     service_section = conf.get('network') |     service_section = conf.get('service') | ||||||
|     if ( |     if ( | ||||||
|         not backend |         not backend | ||||||
|         and service_section |         and service_section | ||||||
|  | @ -186,8 +186,11 @@ async def open_storage_client( | ||||||
| 
 | 
 | ||||||
|         # lookup backend tsdb module by name and load any user service |         # lookup backend tsdb module by name and load any user service | ||||||
|         # settings for connecting to the tsdb service. |         # settings for connecting to the tsdb service. | ||||||
|         backend: str = tsdbconf.pop('backend') |         backend: str = tsdbconf.pop( | ||||||
|         tsdb_host: str = tsdbconf['host'] |             'name', | ||||||
|  |             def_backend, | ||||||
|  |         ) | ||||||
|  |         tsdb_host: str = tsdbconf.get('maddrs', []) | ||||||
| 
 | 
 | ||||||
|     if backend is None: |     if backend is None: | ||||||
|         backend: str = def_backend |         backend: str = def_backend | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue