Skip to content

Commit f568299

Browse files
committed
refactor: remove async from try_pubkey method in GcpSigner
1 parent 1559d85 commit f568299

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/signer.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ impl Into<SignerError> for GcpSignerError {
111111
}
112112

113113
impl Signer for GcpSigner {
114-
#[tokio::main]
115-
async fn try_pubkey(&self) -> Result<Pubkey, SignerError> {
114+
fn try_pubkey(&self) -> Result<Pubkey, SignerError> {
116115
Ok(self
117116
.pubkey
118117
.get()
@@ -228,11 +227,10 @@ mod test {
228227
let signer = GcpSigner::new(client, KeySpecifier(String::from(key_name)))
229228
.await
230229
.unwrap();
231-
println!("{:?}", signer);
232-
// assert_eq!(
233-
// signer.pubkey(),
234-
// Pubkey::from_str_const("0*0+ep!;�Lm�}%vF��(,�E")
235-
// );
230+
assert_eq!(
231+
signer.pubkey(),
232+
Pubkey::from_str_const("0*0+ep!;�Lm�}%vF��(,�E")
233+
);
236234
}
237235

238236
#[test]

0 commit comments

Comments
 (0)