Skip to content

Commit 5beac89

Browse files
committed
fixes
1 parent 3e3d7f9 commit 5beac89

File tree

1 file changed

+3
-2
lines changed
  • toolkit/data-sources/dolos/src

1 file changed

+3
-2
lines changed

toolkit/data-sources/dolos/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pub enum DataSourceError {
6868
/// # Environment variables read:
6969
/// - `DOLOS_MINIBF_URL`: Dolos MiniBF client, eg. `localhost:3000`
7070
pub fn get_connection_from_env() -> Result<MiniBFClient> {
71+
log::warn!("Dolos data sources are still WIP and should not be used in production");
7172
let config = ConnectionConfig::from_env()?;
7273
Ok(MiniBFClient::new(config.dolos_minibf_url.as_str(), std::time::Duration::from_secs(30)))
7374
}
@@ -80,12 +81,12 @@ pub struct ConnectionConfig {
8081
}
8182

8283
impl ConnectionConfig {
83-
/// Reads Postgres connection config from the environment
84+
/// Reads Dolos connection config from the environment
8485
pub fn from_env() -> Result<Self> {
8586
let config: Self = figment::Figment::new()
8687
.merge(figment::providers::Env::raw())
8788
.extract()
88-
.map_err(|e| format!("Failed to read postgres data source connection: {e}"))?;
89+
.map_err(|e| format!("Failed to read Dolos data source connection: {e}"))?;
8990
Ok(config)
9091
}
9192
}

0 commit comments

Comments
 (0)