@@ -41,7 +41,7 @@ use super::error::{Error, InputContributionError};
4141use super :: {
4242 common, InternalPayloadError , JsonReply , OutputSubstitutionError , ProtocolError , SelectionError ,
4343} ;
44- use crate :: error:: { InternalReplayError , ReplayError } ;
44+ use crate :: error:: InternalProcessEventError ;
4545use crate :: hpke:: { decrypt_message_a, encrypt_message_b, HpkeKeyPair , HpkePublicKey } ;
4646use crate :: ohttp:: {
4747 ohttp_encapsulate, process_get_res, process_post_res, OhttpEncapsulationError , OhttpKeys ,
@@ -149,7 +149,7 @@ impl ReceiveSession {
149149 fn process_event (
150150 self ,
151151 event : SessionEvent ,
152- ) -> Result < ReceiveSession , ReplayError < Self , SessionEvent , SessionHistory > > {
152+ ) -> Result < ReceiveSession , InternalProcessEventError < Self , SessionEvent > > {
153153 match ( self , event) {
154154 (
155155 ReceiveSession :: Initialized ( state) ,
@@ -206,13 +206,12 @@ impl ReceiveSession {
206206 } ,
207207 } ) ) ,
208208 ( _, SessionEvent :: Closed ( SessionOutcome :: Failure ) ) =>
209- Err ( InternalReplayError :: ProtocolError ( ) . into ( ) ) ,
209+ Err ( InternalProcessEventError :: ProtocolError ( ) ) ,
210210 ( current_state, SessionEvent :: Closed ( _) ) => Ok ( current_state) ,
211- ( current_state, event) => Err ( InternalReplayError :: InvalidEvent (
211+ ( current_state, event) => Err ( InternalProcessEventError :: InvalidEvent (
212212 Box :: new ( event) ,
213213 Some ( Box :: new ( current_state) ) ,
214- )
215- . into ( ) ) ,
214+ ) ) ,
216215 }
217216 }
218217}
0 commit comments