Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bumped some deps and removed two unwraps #273

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ path = "src/main.rs"
anyhow = "1.0.81"
chrono = "0.4.35"
easy-hasher = "2.2.1"
lightning-invoice = "0.29.0"
nostr-sdk = "0.29.0"
lightning-invoice = "0.30.0"
nostr-sdk = "0.30.0"
serde = { version = "1.0.197" }
serde_json = "1.0.114"
sqlx = { version = "0.6.2", features = [
Expand All @@ -41,5 +41,5 @@ tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
config = "0.14.0"
clap = { version = "4.5.3", features = ["derive"] }
lnurl-rs = "0.4.0"
openssl = { version = "0.10", features = ["vendored"] }
lnurl-rs = "0.5.0"
openssl = { version = "0.10", features = ["vendored"] }
2 changes: 1 addition & 1 deletion src/app/rate_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub async fn update_user_reputation_action(
reputation.last_rating = rating;
reputation.total_reviews += 1;
// Format with two decimals
let new_rating = format!("{:.2}", new_rating).parse::<f64>().unwrap();
let new_rating = format!("{:.2}", new_rating).parse::<f64>()?;

// Assing new total rating to review
reputation.total_rating = new_rating;
Expand Down
2 changes: 1 addition & 1 deletion src/cli/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub fn init_default_dir(config_path: Option<String>) -> Result<PathBuf> {
settings_dir_default.push(home_dir);
} else {
// Get $HOME from env
let tmp = std::env::var("HOME").unwrap();
let tmp = std::env::var("HOME")?;
// Os String
home_dir = tmp.into();
// Create default path with default .mostro value
Expand Down
2 changes: 1 addition & 1 deletion src/lightning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use crate::util::bytes_to_string;

use anyhow::Result;
use easy_hasher::easy_hasher::*;
use nostr_sdk::hashes::Hash;
use nostr_sdk::nostr::hashes::hex::FromHex;
use nostr_sdk::nostr::secp256k1::rand::{self, RngCore};
use nostr_sdk::secp256k1::hashes::Hash;
use tokio::sync::mpsc::Sender;
use tonic_openssl_lnd::invoicesrpc::{
AddHoldInvoiceRequest, AddHoldInvoiceResp, CancelInvoiceMsg, CancelInvoiceResp,
Expand Down
4 changes: 2 additions & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ pub async fn connect_nostr() -> Result<Client> {
let nostr_settings = Settings::get_nostr();

let mut limits = RelayLimits::default();
limits.messages.max_size = 3_000;
limits.events.max_size = 2_000;
limits.messages.max_size = Some(3_000);
limits.events.max_size = Some(2_000);
let opts = Options::new().relay_limits(limits);

// Create new client
Expand Down
Loading