Skip to content

Conversation

DmitryLukyanov
Copy link
Contributor

The mongocryptd's hello response:

    MongoDB Enterprise > db.isMaster()
    {
            "ismaster" : true,
            "iscryptd" : true,
            "maxBsonObjectSize" : 16777216,
            "maxMessageSizeBytes" : 48000000,
            "localTime" : ISODate("2022-06-22T01:27:36.854Z"),
            "maxWireVersion" : 17,
            "minWireVersion" : 0,
            "ok" : 1
    }

Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

};

var subject = new HelloResult(helloResultDocument);
subject.IsMongocryptd.Should().Be(isMongocryptd.GetValueOrDefault(defaultValue: false));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: in such simple cases named parameters can be omitted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually prefer explicit definitions, but I don't mind to change it. Done

@DmitryLukyanov DmitryLukyanov merged commit 36e6228 into mongodb:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants