clean out dbgs

This commit is contained in:
Aiden McClelland
2021-09-27 15:44:27 -06:00
parent 5c2564477e
commit 65e4fb5dc4
3 changed files with 3 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ impl Stream for DecryptStream {
aeskey.as_mut_slice(), aeskey.as_mut_slice(),
); );
let ctr = Nonce::<Aes256Ctr>::from_slice(&this.ctr); let ctr = Nonce::<Aes256Ctr>::from_slice(&this.ctr);
let mut aes = Aes256Ctr::new(dbg!(&aeskey), dbg!(&ctr)); let mut aes = Aes256Ctr::new(&aeskey, &ctr);
let mut res = buf.to_vec(); let mut res = buf.to_vec();
aes.apply_keystream(&mut res); aes.apply_keystream(&mut res);
*this.aes = Some(aes); *this.aes = Some(aes);

View File

@@ -301,9 +301,7 @@ impl MainStatus {
}, },
ManagerStatus::Running => match self { ManagerStatus::Running => match self {
MainStatus::Stopped | MainStatus::Stopping | MainStatus::Restoring { .. } => { MainStatus::Stopped | MainStatus::Stopping | MainStatus::Restoring { .. } => {
dbg!("stopping");
manager.stop().await?; manager.stop().await?;
dbg!("stopped");
} }
MainStatus::Running { .. } => (), MainStatus::Running { .. } => (),
MainStatus::BackingUp { .. } => { MainStatus::BackingUp { .. } => {

View File

@@ -200,7 +200,7 @@ impl Volume {
volume_id, volume_id,
path, path,
.. ..
} => dbg!(ctx } => ctx
.datadir .datadir
.join(PKG_VOLUME_DIR) .join(PKG_VOLUME_DIR)
.join(package_id) .join(package_id)
@@ -210,7 +210,7 @@ impl Volume {
path.strip_prefix("/").unwrap() path.strip_prefix("/").unwrap()
} else { } else {
path.as_ref() path.as_ref()
})), }),
Volume::Certificate { interface_id } => ctx Volume::Certificate { interface_id } => ctx
.datadir .datadir
.join(PKG_VOLUME_DIR) .join(PKG_VOLUME_DIR)