Skip to content

Commit f870ff6

Browse files
committed
Expose NullDataSourceBuilder from crate root
This may seem a bit strange at first, but it's extremely useful when a persistent `DataStore` is filled externally to the LaunchDarkly SDK. In our particular use case, we implement a `PersistentDataStore` using an internal blend of Kafka and RocksDB to allow us to isolate the outbound calls towards LD to a single service. An alternative to this is allowing `offline` mode to continue reading from the `DataStore`, but this is a breaking change.
1 parent 65b708a commit f870ff6

File tree

1 file changed

+2
-1
lines changed
  • launchdarkly-server-sdk/src

1 file changed

+2
-1
lines changed

launchdarkly-server-sdk/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ pub use client::Client;
2929
pub use client::{BuildError, StartError};
3030
pub use config::{ApplicationInfo, BuildError as ConfigBuildError, Config, ConfigBuilder};
3131
pub use data_source_builders::{
32-
BuildError as DataSourceBuildError, PollingDataSourceBuilder, StreamingDataSourceBuilder,
32+
BuildError as DataSourceBuildError, NullDataSourceBuilder, PollingDataSourceBuilder,
33+
StreamingDataSourceBuilder,
3334
};
3435
pub use evaluation::{FlagDetail, FlagDetailConfig};
3536
pub use events::event::MigrationOpEvent;

0 commit comments

Comments
 (0)