mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Removed some debug code
This commit is contained in:
parent
66868effba
commit
b779019716
2 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,6 @@ fn check(token: Option<String>) -> bool {
|
||||||
.duration_since(SystemTime::UNIX_EPOCH)
|
.duration_since(SystemTime::UNIX_EPOCH)
|
||||||
.expect("Time went backwards!")
|
.expect("Time went backwards!")
|
||||||
.as_secs();
|
.as_secs();
|
||||||
println!("{:#?}", token_parts);
|
|
||||||
if token_text == "valid-session-token" && time_now < token_time + 1209600 {
|
if token_text == "valid-session-token" && time_now < token_time + 1209600 {
|
||||||
// There are 1209600 seconds in 14 days
|
// There are 1209600 seconds in 14 days
|
||||||
true
|
true
|
||||||
|
|
|
@ -130,7 +130,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.service(login)
|
.service(login)
|
||||||
.default_service(Files::new("/", "./resources/").index_file("index.html"))
|
.default_service(Files::new("/", "./resources/").index_file("index.html"))
|
||||||
})
|
})
|
||||||
.bind(("0.0.0.0", 2000))?
|
.bind(("0.0.0.0", 4567))?
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue