Overview
| Comment: | fix error a little |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
4c144972c090a29baaa9d56fa4c9942b |
| User & Date: | arcade on 2026-01-02 07:47:54.418 |
| Other Links: | manifest | tags |
Context
|
2026-01-02
| ||
| 12:10 | add github workflows check-in: a39355c1fc user: arcade tags: trunk | |
| 07:47 | fix error a little check-in: 4c144972c0 user: arcade tags: trunk | |
|
2026-01-01
| ||
| 13:18 | add api_gateway, switch to smol check-in: dc7c43b010 user: arcade tags: trunk, v0.5.2 | |
Changes
Modified Cargo.lock
from [e99dfc370d]
to [07d8f772ae].
| ︙ | ︙ | |||
3744 3745 3746 3747 3748 3749 3750 | "proc-macro2", "quote", "syn", ] [[package]] name = "zmij" | | | | 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 | "proc-macro2", "quote", "syn", ] [[package]] name = "zmij" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de9211a9f64b825911bdf0240f58b7a8dac217fe260fc61f080a07f61372fbd5" |
Modified src/core.rs
from [dbaaa2430e]
to [159dd8fde0].
| ︙ | ︙ | |||
259 260 261 262 263 264 265 |
owner_chat: ChatPeerId::from(owner),
..self.clone()
};
let source = {
let mut conn = self.db.begin().await.stack()?;
match conn.get_one(owner, source_id).await {
Ok(Some(source)) => source.to_string(),
| | | | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
owner_chat: ChatPeerId::from(owner),
..self.clone()
};
let source = {
let mut conn = self.db.begin().await.stack()?;
match conn.get_one(owner, source_id).await {
Ok(Some(source)) => source.to_string(),
Ok(None) => "Source not found in database?".to_string(),
Err(err) => format!("Failed to fetch source data:\n{err}"),
}
};
smol::spawn(Compat::new(async move {
if let Err(err) = clone.check(source_id, true, Some(last_scrape)).await {
if let Err(err) = clone.send(&format!("š {source}\n{}", encode(&err.to_string())), None, Some(ParseMode::MarkdownV2)).await {
eprintln!("Check error: {err}");
// clone.disable(&source_id, owner).await.unwrap();
};
};
})).detach();
}
} else if next_fetch - now < delay {
|
| ︙ | ︙ |
Modified src/main.rs
from [3cb558ff1b]
to [527f3dd3d4].
| ︙ | ︙ | |||
11 12 13 14 15 16 17 |
use stacked_errors::{
Result,
StackableErr,
};
use tgbot::handler::LongPoll;
fn main () -> Result<()> {
| | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
use stacked_errors::{
Result,
StackableErr,
};
use tgbot::handler::LongPoll;
fn main () -> Result<()> {
smol::block_on(Compat::new(async {
async_main().await.unwrap();
}));
Ok(())
}
async fn async_main () -> Result<()> {
|
| ︙ | ︙ |