mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 14:04:28 +01:00
Use const
This commit is contained in:
@@ -159,10 +159,7 @@ pub async fn send_nostr_events(events: Vec<Event>, part: u32) -> Result<Vec<Even
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console_log!("no cache hit for relays");
|
console_log!("no cache hit for relays");
|
||||||
match Fetch::Url("https://api.nostr.watch/v1/online".parse().unwrap())
|
match Fetch::Url(RELAY_LIST_URL.parse().unwrap()).send().await {
|
||||||
.send()
|
|
||||||
.await
|
|
||||||
{
|
|
||||||
Ok(mut nostr_resp) => {
|
Ok(mut nostr_resp) => {
|
||||||
console_log!("retrieved online relay list");
|
console_log!("retrieved online relay list");
|
||||||
match nostr_resp.json::<Vec<String>>().await {
|
match nostr_resp.json::<Vec<String>>().await {
|
||||||
|
|||||||
Reference in New Issue
Block a user