Skip to content
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
4 changes: 4 additions & 0 deletions src/providers/apns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ impl PushProvider for ApnsProvider {
);
Err(Error::ApnsCertificateUnknownCA)
}
dbg if dbg.contains("received fatal alert: CertificateExpired") => {
info!("APNs certificate expired: debug:{dbg}, display: {client_error}");
Err(Error::ApnsCertificateExpired)
}
_ => Err(Error::Apns(e)),
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ pub fn new_state(
#[cfg(feature = "multitenant")]
let jwt_secret = config.jwt_secret.clone();

let public_ip = match networking::find_public_ip_addr() {
Ok(ip) => Some(ip),
// Note: Should we pass this error back up?
Err(_e) => None,
};
let public_ip = networking::find_public_ip_addr().ok();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing clippy error.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

Comment thread
geekbrother marked this conversation as resolved.

Ok(AppState {
config: config.clone(),
Expand Down
Loading