mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-12 11:28:12 -07:00
Require rust 1.88 so we can use let chains
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
name = "rayhunter-daemon"
|
||||
version = "0.5.1"
|
||||
edition = "2024"
|
||||
rust-version = "1.88"
|
||||
|
||||
[dependencies]
|
||||
rayhunter = { path = "../lib" }
|
||||
|
||||
@@ -54,9 +54,9 @@ pub fn run_notification_worker(
|
||||
mut notification_service: NotificationService,
|
||||
) {
|
||||
task_tracker.spawn(async move {
|
||||
let channel_name = notification_service.channel_name.unwrap_or("".into());
|
||||
|
||||
if !channel_name.is_empty() {
|
||||
if let Some(url) = notification_service.url
|
||||
&& !url.is_empty()
|
||||
{
|
||||
let mut notification_statuses = HashMap::new();
|
||||
let http_client = reqwest::Client::new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user