Remove different states of ToSave in peerstate

This commit is contained in:
link2xt
2022-11-25 21:06:14 +00:00
parent 08de326930
commit 2ae9165bfb
5 changed files with 25 additions and 50 deletions

View File

@@ -341,7 +341,7 @@ async fn mark_as_verified(this: &TestContext, other: &TestContext) {
peerstate.verified_key = peerstate.public_key.clone();
peerstate.verified_key_fingerprint = peerstate.public_key_fingerprint.clone();
peerstate.to_save = Some(peerstate::ToSave::All);
peerstate.to_save = true;
peerstate.save_to_db(&this.sql, false).await.unwrap();
}