Skip to content

Commit de94e66

Browse files
committed
Rename sender persist.rs to session.rs
Renamed `persist.rs` to `session.rs` as the file no longer manages persistence logic. It now handles session replays and history management.
1 parent e8c000f commit de94e66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

payjoin/src/send/v2/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use bitcoin::hashes::{sha256, Hash};
2525
pub use error::{CreateRequestError, EncapsulationError};
2626
use error::{InternalCreateRequestError, InternalEncapsulationError};
2727
use ohttp::ClientResponse;
28-
pub use persist::{replay_event_log, ReplayError, SessionEvent, SessionHistory};
2928
use serde::{Deserialize, Serialize};
29+
pub use session::{replay_event_log, ReplayError, SessionEvent, SessionHistory};
3030
use url::Url;
3131

3232
use super::error::BuildSenderError;
@@ -37,12 +37,12 @@ use crate::persist::{
3737
MaybeBadInitInputsTransition, MaybeFatalTransition, MaybeSuccessTransitionWithNoResults,
3838
};
3939
use crate::send::v1;
40-
use crate::send::v2::persist::InternalReplayError;
40+
use crate::send::v2::session::InternalReplayError;
4141
use crate::uri::{ShortId, UrlExt};
4242
use crate::{HpkeKeyPair, HpkePublicKey, IntoUrl, OhttpKeys, PjUri, Request};
4343

4444
mod error;
45-
mod persist;
45+
mod session;
4646

4747
/// A builder to construct the properties of a [`Sender`].
4848
#[derive(Clone)]

0 commit comments

Comments
 (0)