refactor: Fix remaining errors in api/cient/message.rs

This commit is contained in:
Ginger
2026-04-12 11:58:59 -04:00
parent ca358438ee
commit 39b2e461be
4 changed files with 35 additions and 59 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ fn load(db: &Arc<Database>) -> Result<Box<Ed25519KeyPair>> {
}
fn create(db: &Arc<Database>) -> Result<(String, Vec<u8>)> {
let keypair = Ed25519KeyPair::generate()
.map_err(|e| err!("Failed to generate new ed25519 keypair: {e:?}"))?;
let keypair = Ed25519KeyPair::generate();
let id = utils::rand::string(8);
debug_info!("Generated new Ed25519 keypair: {id:?}");