File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,7 @@ pub(crate) mod gridfs {
372
372
pub const CREDENTIAL_MECHANISM : & str = "UME_STORAGE_GRIDFS_CREDENTIAL_MECHANISM" ;
373
373
pub const CREDENTIAL_SOURCE : & str = "UME_STORAGE_GRIDFS_CREDENTIAL_SOURCE" ;
374
374
pub const CONNECT_TIMEOUT : & str = "UME_STORAGE_GRIDFS_CONNECT_TIMEOUT" ;
375
+ pub const REPLICA_SET : & str = "UME_STORAGE_GRIDFS_REPLICA_SET" ;
375
376
pub const CREDENTIAL : & str = "UME_STORAGE_GRIDFS_CREDENTIALS" ;
376
377
pub const APP_NAME : & str = "UME_STORAGE_GRIDFS_APP_NAME" ;
377
378
pub const HOSTS : & str = "UME_STORAGE_GRIDFS_SERVERS" ;
@@ -432,6 +433,7 @@ pub(crate) mod gridfs {
432
433
}
433
434
434
435
merge_tuple ! ( me. client_options. credential, other. client_options. credential) ;
436
+ merge_tuple ! ( me. client_options. repl_set_name, other. client_options. repl_set_name) ;
435
437
}
436
438
437
439
me. database . merge ( other. database ) ;
@@ -458,6 +460,7 @@ pub(crate) mod gridfs {
458
460
. connect_timeout ( parse_connect_timeout ( ) ?)
459
461
. hosts ( parse_hosts ( ) ?)
460
462
. credential ( parse_credentials ( ) ?)
463
+ . repl_set_name ( env:: try_parse_optional ( REPLICA_SET ) ?)
461
464
. build ( ) )
462
465
}
463
466
You can’t perform that action at this time.
0 commit comments