Skip to content

Commit

Permalink
Add some comments to the AnyTls impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Mar 5, 2025
1 parent 0776da4 commit a3c4f74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heed/src/txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ impl TlsUsage for WithoutTls {
}

impl TlsUsage for AnyTls {
// Users cannot open environments with AnyTls; therefore, this will never be read.
// We prefer to put the most restrictive value.
const ENABLED: bool = false;
}

Expand Down Expand Up @@ -273,7 +275,6 @@ impl<'p> RwTxn<'p> {
Ok(RwTxn {
txn: RoTxn {
inner: RoTxnInner { txn: NonNull::new(txn), env: Cow::Borrowed(&env.inner) },

_tls_marker: PhantomData,
},
})
Expand Down

0 comments on commit a3c4f74

Please sign in to comment.