This repository was archived by the owner on Nov 14, 2024. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- DB_POSTGRESQL_URL = " postgres://postgres:postgres@localhost:5432/mega "
1
+ MEGA_DB_SQLX_LOGGING = false
2
2
3
- DB_SQLX_LOGGING = false
3
+ MEGA_DB_POSTGRESQL_URL = " postgres://postgres:postgres@localhost:5432/mega "
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn main() {
41
41
}
42
42
43
43
pub async fn db_connection ( ) -> DatabaseConnection {
44
- let mut opt = ConnectOptions :: new ( env:: var ( "DB_POSTGRESQL_URL " ) . unwrap ( ) ) ;
44
+ let mut opt = ConnectOptions :: new ( env:: var ( "MEGA_DB_POSTGRESQL_URL " ) . unwrap ( ) ) ;
45
45
// max_connections is properly for double size of the cpu core
46
46
opt. max_connections ( 16 )
47
47
. min_connections ( 2 )
@@ -50,7 +50,7 @@ pub async fn db_connection() -> DatabaseConnection {
50
50
. idle_timeout ( Duration :: from_secs ( 8 ) )
51
51
. max_lifetime ( Duration :: from_secs ( 8 ) )
52
52
. sqlx_logging (
53
- env:: var ( "DB_SQLX_LOGGING " )
53
+ env:: var ( "MEGA_DB_SQLX_LOGGING " )
54
54
. unwrap ( )
55
55
. parse :: < bool > ( )
56
56
. unwrap ( ) ,
@@ -121,7 +121,7 @@ pub async fn add_and_push_to_remote(workspace: PathBuf) {
121
121
url. set_path ( & new_path) ;
122
122
123
123
println ! ( "Found URL: {}" , url) ;
124
- record. mega_url = Set ( url . to_string ( ) ) ;
124
+ record. mega_url = Set ( new_path ) ;
125
125
126
126
Command :: new ( "git" )
127
127
. arg ( "remote" )
You can’t perform that action at this time.
0 commit comments