Skip to content

Commit

Permalink
txkeyspace inner (shh hidden)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Oct 29, 2024
1 parent 9cf22eb commit 0e16974
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tx/keyspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ use super::oracle::Oracle;
#[derive(Clone)]
#[allow(clippy::module_name_repetitions)]
pub struct TransactionalKeyspace {
#[doc(hidden)]
pub inner: Keyspace,
pub(crate) inner: Keyspace,

#[cfg(feature = "ssi_tx")]
pub(super) oracle: Arc<Oracle>,
Expand All @@ -31,6 +30,12 @@ pub struct TransactionalKeyspace {
pub type TxKeyspace = TransactionalKeyspace;

impl TxKeyspace {
#[doc(hidden)]
#[must_use]
pub fn inner(&self) -> &Keyspace {
&self.inner
}

/// Starts a new writeable transaction.
#[cfg(feature = "single_writer_tx")]
#[must_use]
Expand Down

0 comments on commit 0e16974

Please sign in to comment.