File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
toolkit/data-sources/dolos/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ pub enum DataSourceError {
6868/// # Environment variables read:
6969/// - `DOLOS_MINIBF_URL`: Dolos MiniBF client, eg. `localhost:3000`
7070pub 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
8283impl 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}
You can’t perform that action at this time.
0 commit comments