cargo fmt
Some checks failed
Sec Audit / License & Supply Chain (push) Has been cancelled
CI Run / Test (push) Has been cancelled
CI Run / Build (Smoke) (push) Has been cancelled
CI Run / Docs-Only Fast Path (push) Has been cancelled
CI Run / Non-Rust Fast Path (push) Has been cancelled
CI Run / Docs Quality (push) Has been cancelled
CI Run / Lint Feedback (push) Has been cancelled
CI Run / Workflow Owner Approval (push) Has been cancelled
CI Run / CI Required Gate (push) Has been cancelled
Feature Matrix / Check (all-features) (push) Has been cancelled
CI Run / Detect Change Scope (push) Has been cancelled
Pub Docker Img / Build and Push Docker Image (push) Has been cancelled
Sec Audit / Security Audit (push) Has been cancelled
CI Run / Lint Gate (Format + Clippy) (push) Has been cancelled
CI Run / Lint Gate (Strict Delta) (push) Has been cancelled
Feature Matrix / Check (browser-native) (push) Has been cancelled
Feature Matrix / Check (hardware-only) (push) Has been cancelled
Feature Matrix / Check (no-default-features) (push) Has been cancelled
PR Label Policy Check / contributor-tier-consistency (push) Has been cancelled
Pub Docker Img / PR Docker Smoke (push) Has been cancelled
Test Benchmarks / Criterion Benchmarks (push) Has been cancelled
Test E2E / Integration / E2E Tests (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Some checks failed
Sec Audit / License & Supply Chain (push) Has been cancelled
CI Run / Test (push) Has been cancelled
CI Run / Build (Smoke) (push) Has been cancelled
CI Run / Docs-Only Fast Path (push) Has been cancelled
CI Run / Non-Rust Fast Path (push) Has been cancelled
CI Run / Docs Quality (push) Has been cancelled
CI Run / Lint Feedback (push) Has been cancelled
CI Run / Workflow Owner Approval (push) Has been cancelled
CI Run / CI Required Gate (push) Has been cancelled
Feature Matrix / Check (all-features) (push) Has been cancelled
CI Run / Detect Change Scope (push) Has been cancelled
Pub Docker Img / Build and Push Docker Image (push) Has been cancelled
Sec Audit / Security Audit (push) Has been cancelled
CI Run / Lint Gate (Format + Clippy) (push) Has been cancelled
CI Run / Lint Gate (Strict Delta) (push) Has been cancelled
Feature Matrix / Check (browser-native) (push) Has been cancelled
Feature Matrix / Check (hardware-only) (push) Has been cancelled
Feature Matrix / Check (no-default-features) (push) Has been cancelled
PR Label Policy Check / contributor-tier-consistency (push) Has been cancelled
Pub Docker Img / PR Docker Smoke (push) Has been cancelled
Test Benchmarks / Criterion Benchmarks (push) Has been cancelled
Test E2E / Integration / E2E Tests (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
This commit is contained in:
parent
876635b0b3
commit
a8afe0cbc1
2 changed files with 4 additions and 11 deletions
|
|
@ -19,8 +19,8 @@ pub mod image_info;
|
|||
pub mod memory_forget;
|
||||
pub mod memory_recall;
|
||||
pub mod memory_store;
|
||||
pub mod proxy_config;
|
||||
pub mod notify;
|
||||
pub mod proxy_config;
|
||||
pub mod schedule;
|
||||
pub mod schema;
|
||||
pub mod screenshot;
|
||||
|
|
@ -49,8 +49,8 @@ pub use image_info::ImageInfoTool;
|
|||
pub use memory_forget::MemoryForgetTool;
|
||||
pub use memory_recall::MemoryRecallTool;
|
||||
pub use memory_store::MemoryStoreTool;
|
||||
pub use proxy_config::ProxyConfigTool;
|
||||
pub use notify::NotifyTool;
|
||||
pub use proxy_config::ProxyConfigTool;
|
||||
pub use schedule::ScheduleTool;
|
||||
#[allow(unused_imports)]
|
||||
pub use schema::{CleaningStrategy, SchemaCleanr};
|
||||
|
|
|
|||
|
|
@ -180,10 +180,7 @@ impl NotifyTool {
|
|||
_ => message.to_owned(),
|
||||
};
|
||||
|
||||
let url = format!(
|
||||
"https://api.telegram.org/bot{}/sendMessage",
|
||||
bot_token
|
||||
);
|
||||
let url = format!("https://api.telegram.org/bot{}/sendMessage", bot_token);
|
||||
|
||||
let client = crate::config::build_runtime_proxy_client_with_timeouts(
|
||||
"tool.notify",
|
||||
|
|
@ -538,11 +535,7 @@ mod tests {
|
|||
fn detect_prefers_pushover_when_both_available() {
|
||||
let tmp = TempDir::new().unwrap();
|
||||
let env_path = tmp.path().join(".env");
|
||||
fs::write(
|
||||
&env_path,
|
||||
"PUSHOVER_TOKEN=token\nPUSHOVER_USER_KEY=user\n",
|
||||
)
|
||||
.unwrap();
|
||||
fs::write(&env_path, "PUSHOVER_TOKEN=token\nPUSHOVER_USER_KEY=user\n").unwrap();
|
||||
|
||||
let tg = TelegramConfig {
|
||||
bot_token: "123:ABC".into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue