Skip to content

Commit 28bb35e

Browse files
committed
fixes
1 parent 21322b6 commit 28bb35e

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
@@ -61,6 +61,7 @@ pub enum DataSourceError {
6161
/// # Environment variables read:
6262
/// - `DOLOS_MINIBF_URL`: Dolos MiniBF client, eg. `localhost:3000`
6363
pub fn get_connection_from_env() -> Result<MiniBFClient> {
64+
log::warn!("Dolos data sources are still WIP and should not be used in production");
6465
let config = ConnectionConfig::from_env()?;
6566
Ok(MiniBFClient::new(config.dolos_minibf_url.as_str(), std::time::Duration::from_secs(30)))
6667
}
@@ -73,12 +74,12 @@ pub struct ConnectionConfig {
7374
}
7475

7576
impl ConnectionConfig {
76-
/// Reads Postgres connection config from the environment
77+
/// Reads Dolos connection config from the environment
7778
pub fn from_env() -> Result<Self> {
7879
let config: Self = figment::Figment::new()
7980
.merge(figment::providers::Env::raw())
8081
.extract()
81-
.map_err(|e| format!("Failed to read postgres data source connection: {e}"))?;
82+
.map_err(|e| format!("Failed to read Dolos data source connection: {e}"))?;
8283
Ok(config)
8384
}
8485
}

0 commit comments

Comments
 (0)