Improve JWT key initialization and avoid saving public key (#4085)

This commit is contained in:
Daniel García
2024-03-17 15:11:20 +01:00
committed by GitHub
parent 2cbfe6fa5b
commit a1fbd6d729
5 changed files with 48 additions and 87 deletions

View File

@@ -103,7 +103,7 @@ impl Attachment {
let file_path = &self.get_file_path();
match crate::util::delete_file(file_path) {
match std::fs::remove_file(file_path) {
// Ignore "file not found" errors. This can happen when the
// upstream caller has already cleaned up the file as part of
// its own error handling.