File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,9 @@ pub enum ErrorKind {
435
435
}
436
436
437
437
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.
438
441
fn get_write_concern_error ( & self ) -> Option < & WriteConcernError > {
439
442
match self {
440
443
ErrorKind :: BulkWrite ( BulkWriteFailure {
@@ -489,6 +492,8 @@ pub struct WriteConcernError {
489
492
pub details : Option < Document > ,
490
493
491
494
/// Labels categorizing the error.
495
+ // TODO CLOUDP-105256 Remove this when the Atlas Proxy properly returns
496
+ // error labels at the top level.
492
497
#[ serde( rename = "errorLabels" , default ) ]
493
498
pub ( crate ) labels : Vec < String > ,
494
499
}
You can’t perform that action at this time.
0 commit comments