Skip to content

Commit 2682541

Browse files
committed
add todos
1 parent d3c86c2 commit 2682541

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/error.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ pub enum ErrorKind {
435435
}
436436

437437
impl ErrorKind {
438+
// This is only used as part of a workaround to Atlas Proxy not returning
439+
// toplevel error labels.
440+
// TODO CLOUDP-105256 Remove this when Atlas Proxy error label behavior is fixed.
438441
fn get_write_concern_error(&self) -> Option<&WriteConcernError> {
439442
match self {
440443
ErrorKind::BulkWrite(BulkWriteFailure {
@@ -489,6 +492,8 @@ pub struct WriteConcernError {
489492
pub details: Option<Document>,
490493

491494
/// Labels categorizing the error.
495+
// TODO CLOUDP-105256 Remove this when the Atlas Proxy properly returns
496+
// error labels at the top level.
492497
#[serde(rename = "errorLabels", default)]
493498
pub(crate) labels: Vec<String>,
494499
}

0 commit comments

Comments
 (0)