get everything working and slightly documented
This commit is contained in:
parent
8e50218c03
commit
6cb88a566c
|
@ -15,7 +15,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let mut sigint = signal(SignalKind::interrupt())?;
|
let mut sigint = signal(SignalKind::interrupt())?;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
println!("Loop");
|
|
||||||
select! {
|
select! {
|
||||||
_ = sigint.recv() => {
|
_ = sigint.recv() => {
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -15,9 +15,15 @@ pub struct MatrixConfig {
|
||||||
pub home_server: String,
|
pub home_server: String,
|
||||||
|
|
||||||
/// The next batch to grab. This should be set automatically
|
/// The next batch to grab. This should be set automatically
|
||||||
|
#[serde(default)]
|
||||||
pub next_batch: Option<String>,
|
pub next_batch: Option<String>,
|
||||||
|
|
||||||
|
/// The transaction ID. This should be set automatically
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub txn_id: u64,
|
pub txn_id: u64,
|
||||||
|
|
||||||
|
/// The login table. This may be set to whatever you wish, depending on your login method,
|
||||||
|
/// though multi-step logins (like challenge-based) won't work here.
|
||||||
pub login: toml::Value,
|
pub login: toml::Value,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue