@@ -88,7 +88,7 @@ def __init__(self, config: AsyncConfig):
8888
8989 self ._config = config
9090 self ._config ._instance_id = str (uuid4 ())
91- self ._datasystem_config = config .datasystem_config or async_datasystem .default ().build ()
91+ self ._data_system_config = config .data_system or async_datasystem .default ().build ()
9292 self ._lifecycle_lock = asyncio .Lock ()
9393
9494 self ._started = False
@@ -218,13 +218,13 @@ async def __start_up(self, start_wait: float):
218218 # The data system builds its data sources from builders. Give the shared
219219 # session to the builders before the data system starts.
220220 if not self ._config .offline :
221- self ._wire_data_source_sessions (self ._datasystem_config )
221+ self ._wire_data_source_sessions (self ._data_system_config )
222222
223223 if self ._config .offline :
224224 log .info ("Started LaunchDarkly Client in offline mode" )
225- elif _is_daemon_mode (self ._datasystem_config ):
225+ elif _is_daemon_mode (self ._data_system_config ):
226226 log .info ("Started LaunchDarkly Client in daemon mode" )
227- elif _has_no_data_sources (self ._datasystem_config ):
227+ elif _has_no_data_sources (self ._data_system_config ):
228228 log .warning ("The data system has no data sources and no persistent store. All evaluations will return default values." )
229229
230230 diagnostic_accumulator = self ._set_event_processor (self ._config )
@@ -237,7 +237,7 @@ async def __start_up(self, start_wait: float):
237237 update_processor_ready = AsyncEvent ()
238238 self ._data_system .start (update_processor_ready )
239239
240- if not self ._config .offline and not _is_daemon_mode (self ._datasystem_config ):
240+ if not self ._config .offline and not _is_daemon_mode (self ._data_system_config ):
241241 if start_wait > 60 :
242242 log .warning (f"Client was configured to block for up to { start_wait } seconds when initializing. We recommend blocking no longer than 60." )
243243
@@ -263,16 +263,16 @@ def _get_session(self):
263263 def _make_data_system (self ) -> AsyncDataSystem :
264264 from ldclient .impl .datasystem .async_fdv2 import AsyncFDv2
265265
266- return AsyncFDv2 (self ._config , self ._datasystem_config )
266+ return AsyncFDv2 (self ._config , self ._data_system_config )
267267
268268 def _wire_data_source_sessions (self , data_system_config ) -> None :
269269 """Provide the client's aiohttp session to any async data source
270270 builders so the sources they build share the client's connection pool."""
271- from ldclient .impl .datasourcev2 .async_polling import (
271+ from ldclient .impl .datasource .async_polling import (
272272 AsyncFallbackToFDv1PollingDataSourceBuilder ,
273273 AsyncPollingDataSourceBuilder
274274 )
275- from ldclient .impl .datasourcev2 .async_streaming import (
275+ from ldclient .impl .datasource .async_streaming import (
276276 AsyncStreamingDataSourceBuilder
277277 )
278278
0 commit comments