From 66d59f3398cc6e0b0109eb9d3f6c327a4acf8890 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Thu, 25 Jan 2024 14:17:48 -0500 Subject: [PATCH] fix debugging logic --- registry/src/lib.rs | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/registry/src/lib.rs b/registry/src/lib.rs index 0bd752a..a3f0587 100644 --- a/registry/src/lib.rs +++ b/registry/src/lib.rs @@ -38,20 +38,19 @@ where "Revoking attribute {:#?}", String::from_utf8_lossy(&attribute) ); - let res = self.registry.revoke_attribute_signed( - address, - signature.v.try_into()?, - signature.r.into(), - signature.s.into(), - attribute, - value.into(), - ); - - let res = res.send().await; - if let Err(ref e) = res { - println!("{}", e); - } - res?.await?; + let res = self + .registry + .revoke_attribute_signed( + address, + signature.v.try_into()?, + signature.r.into(), + signature.s.into(), + attribute, + value.into(), + ) + .send() + .await? + .await?; Ok(()) }