Skip to content

Commit

Permalink
Don't cache coinos lnurls
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Nov 28, 2023
1 parent 106c0bb commit 3e69df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/profile_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ async fn get_invoice_from_lnurl(
};

if let Ok(LnUrlPayResponse(pay)) = resp {
// don't cache voltage lnurls, they change everytime
if !lnurl.url.contains("vlt.ge") {
// don't cache voltage or coinos lnurls, they change everytime
if !lnurl.url.contains("vlt.ge") && !lnurl.url.contains("coinos.io") {
let mut cache = pay_cache.lock().await;
cache.insert(lnurl.clone(), pay.clone());
}
Expand Down

0 comments on commit 3e69df0

Please sign in to comment.