Join rooms from "join room" overlay

This commit is contained in:
Joscha 2022-02-26 14:13:08 +01:00
parent 1949b6f5e1
commit 1543940fbc
3 changed files with 44 additions and 14 deletions

View file

@ -1,4 +1,4 @@
use std::time::Duration;
use std::time::{Duration, Instant};
use clap::Parser;
@ -10,6 +10,7 @@ pub struct Args {
pub struct Config {
pub cove_url: String,
pub cove_identity: String,
pub timeout: Duration,
}
@ -18,6 +19,8 @@ impl Config {
let args = Args::parse();
Self {
cove_url: args.cove_url,
// TODO Load identity from file oslt
cove_identity: format!("{:?}", Instant::now()),
timeout: Duration::from_secs(10),
}
}