Removed some commented code.
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.rs
									
									
									
									
									
								
							@@ -6,17 +6,6 @@ use settings::Settings;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#[async_std::main]
 | 
					#[async_std::main]
 | 
				
			||||||
async fn main() -> tide::Result<()> {
 | 
					async fn main() -> tide::Result<()> {
 | 
				
			||||||
    //let settings = Config::builder()
 | 
					 | 
				
			||||||
    //    .set_default("address", "127.0.0.1")?
 | 
					 | 
				
			||||||
    //    .set_default("port", 9090)?
 | 
					 | 
				
			||||||
    //    .add_source(
 | 
					 | 
				
			||||||
    //        config::Environment::with_prefix("MTT")
 | 
					 | 
				
			||||||
    //            .try_parsing(true)
 | 
					 | 
				
			||||||
    //            .separator("_")
 | 
					 | 
				
			||||||
    //            .list_separator(" "),
 | 
					 | 
				
			||||||
    //    )
 | 
					 | 
				
			||||||
    //    .build()
 | 
					 | 
				
			||||||
    //    .unwrap();
 | 
					 | 
				
			||||||
    let sett = Settings::new().unwrap();
 | 
					    let sett = Settings::new().unwrap();
 | 
				
			||||||
    let app = app_setup().await;
 | 
					    let app = app_setup().await;
 | 
				
			||||||
    app.listen(format!("{}:{}", sett.address, sett.port))
 | 
					    app.listen(format!("{}:{}", sett.address, sett.port))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user