Skip to content

Commit a3c4f74

Browse files
committed
Add some comments to the AnyTls impl
1 parent 0776da4 commit a3c4f74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

heed/src/txn.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ impl TlsUsage for WithoutTls {
210210
}
211211

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

@@ -273,7 +275,6 @@ impl<'p> RwTxn<'p> {
273275
Ok(RwTxn {
274276
txn: RoTxn {
275277
inner: RoTxnInner { txn: NonNull::new(txn), env: Cow::Borrowed(&env.inner) },
276-
277278
_tls_marker: PhantomData,
278279
},
279280
})

0 commit comments

Comments
 (0)