Bump dependencies

This commit is contained in:
asonix
2021-08-01 15:12:06 -05:00
parent 0f370de1a0
commit 8474640278
8 changed files with 256 additions and 225 deletions
+4 -4
View File
@@ -11,13 +11,13 @@ use async_rwlock::RwLock;
use log::info;
use lru::LruCache;
use rand::thread_rng;
use rsa::{RSAPrivateKey, RSAPublicKey};
use rsa::{RsaPrivateKey, RsaPublicKey};
use std::sync::Arc;
#[derive(Clone)]
pub struct State {
pub(crate) public_key: RSAPublicKey,
private_key: RSAPrivateKey,
pub(crate) public_key: RsaPublicKey,
private_key: RsaPrivateKey,
config: Config,
object_cache: Arc<RwLock<LruCache<Url, Url>>>,
node_cache: NodeCache,
@@ -81,7 +81,7 @@ impl State {
info!("Generating new keys");
let key = web::block(move || {
let mut rng = thread_rng();
RSAPrivateKey::new(&mut rng, 4096)
RsaPrivateKey::new(&mut rng, 4096)
})
.await??;