Skip to content

Commit 0701a67

Browse files
committed
minor: document that unacknowledged write concerns are unsupported
1 parent d52aca5 commit 0701a67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/concern/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ pub struct WriteConcern {
165165
pub enum Acknowledgment {
166166
/// Requires acknowledgement that the write has reached the specified number of nodes.
167167
///
168-
/// Note: specifying 0 here indicates that the write is unacknowledged. Doing so means
169-
/// the driver will not receive a response indicating whether an operation succeeded or failed.
170-
/// It also means that the operation cannot be associated with a session. It is reccommended to
171-
/// avoid using unacknowledged write concerns.
168+
/// Note: specifying 0 here indicates that the write concern is unacknowledged, which is
169+
/// currently unsupported and will result in an error during operation execution.
172170
Nodes(u32),
173171

174172
/// Requires acknowledgement that the write has reached the majority of nodes.

0 commit comments

Comments
 (0)