-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Empty show more show less
Currently the AutoEncrypter is stored in the topology options, which is cloned to individual Server instances. This makes access somewhat cumbersome in the wire protocol methods, leading to checks like:
server && server.s && server.s.options && server.s.options.autoEncrypter;
We can follow patterns we use for e.g. Collection.readConcern to make this more readable.