File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ func (a *AutoEncryptionOptions) SetBypassQueryAnalysis(bypass bool) *AutoEncrypt
167167 return a
168168}
169169
170- // SetKeyExpiration specifies duration for the key expiration. 0 means "never expire".
170+ // SetKeyExpiration specifies duration for the key expiration. 0 or negative value means "never expire".
171171func (a * AutoEncryptionOptions ) SetKeyExpiration (expiration time.Duration ) * AutoEncryptionOptions {
172172 a .KeyExpiration = & expiration
173173
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ func (c *ClientEncryptionOptionsBuilder) SetTLSConfig(cfg map[string]*tls.Config
8282 return c
8383}
8484
85- // SetKeyExpiration specifies duration for the key expiration. 0 means "never expire".
85+ // SetKeyExpiration specifies duration for the key expiration. 0 or negative value means "never expire".
8686func (c * ClientEncryptionOptionsBuilder ) SetKeyExpiration (expiration time.Duration ) * ClientEncryptionOptionsBuilder {
8787 c .Opts = append (c .Opts , func (opts * ClientEncryptionOptions ) error {
8888 opts .KeyExpiration = & expiration
You can’t perform that action at this time.
0 commit comments