Upgrade Ruma

This commit is contained in:
Jonas Platte
2021-11-26 20:36:40 +01:00
parent 1fc616320a
commit 892a0525f2
25 changed files with 297 additions and 304 deletions

View File

@@ -26,7 +26,7 @@ pub async fn turn_server_route(
let turn_secret = db.globals.turn_secret();
let (username, password) = if turn_secret != "" {
let (username, password) = if !turn_secret.is_empty() {
let expiry = SecondsSinceUnixEpoch::from_system_time(
SystemTime::now() + Duration::from_secs(db.globals.turn_ttl()),
)