From a40b1a787b848d77d78a23291b83a1fb0bab0dd6 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 16 Jun 2020 13:56:48 -0700 Subject: [PATCH] Clean up Ed25519 example --- tower-batch/tests/ed25519.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tower-batch/tests/ed25519.rs b/tower-batch/tests/ed25519.rs index 1ec9aee23..14be38cf1 100644 --- a/tower-batch/tests/ed25519.rs +++ b/tower-batch/tests/ed25519.rs @@ -1,5 +1,4 @@ use std::{ - convert::TryFrom, future::Future, pin::Pin, sync::Once, @@ -129,19 +128,6 @@ where } } -/* -#[tokio::test] -async fn individual_verification_with_service_fn() { - let verifier = tower::service_fn(|item: Ed25519Item| { - // now this is actually impossible to write, oops - let result = VerificationKey::try_from(vk_bytes).and_then(|vk| vk.verify(&sig, msg)); - async move { result } - }); - - sign_and_verify(verifier, 100).await; -} -*/ - #[tokio::test] async fn batch_flushes_on_max_items() { use tokio::time::timeout;