Skip to content

Commit

Permalink
protocol: Remove unused send method
Browse files Browse the repository at this point in the history
  • Loading branch information
felinira committed Feb 25, 2024
1 parent 374a2b0 commit 5f35899
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use mockall::automock;
use crate::{
core::{
key::{derive_phase_key, derive_verifier, encrypt_data},
Phase, PhaseProvider,
PhaseProvider,
},
rendezvous::RendezvousServer,
AppConfig, AppID, Key, Mood, WormholeError, WormholeKey,
Expand Down Expand Up @@ -70,10 +70,6 @@ impl WormholeProtocolDefault {
#[async_trait]
impl WormholeProtocol for WormholeProtocolDefault {
/** Send an encrypted message to peer */
async fn send(&mut self, plaintext: Vec<u8>) -> Result<(), WormholeError> {
self.send_with_phase(plaintext, Phase::numeric).await
}

async fn send_with_phase(
&mut self,
plaintext: Vec<u8>,
Expand Down Expand Up @@ -140,7 +136,6 @@ impl WormholeProtocol for WormholeProtocolDefault {
#[cfg_attr(test, automock)]
#[async_trait]
pub trait WormholeProtocol: Debug + Send + Sync {
async fn send(&mut self, plaintext: Vec<u8>) -> Result<(), WormholeError>;
async fn send_with_phase(
&mut self,
plaintext: Vec<u8>,
Expand Down

0 comments on commit 5f35899

Please sign in to comment.