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 @@ -61,6 +61,7 @@ pub enum DataSourceError {
6161/// # Environment variables read:
6262/// - `DOLOS_MINIBF_URL`: Dolos MiniBF client, eg. `localhost:3000`
6363pub 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
7576impl 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}
You can’t perform that action at this time.
0 commit comments