Skip to content

Commit c7a6219

Browse files
committed
Update comments
1 parent 32e7246 commit c7a6219

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mongo/options/autoencryptionoptions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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".
171171
func (a *AutoEncryptionOptions) SetKeyExpiration(expiration time.Duration) *AutoEncryptionOptions {
172172
a.KeyExpiration = &expiration
173173

mongo/options/clientencryptionoptions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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".
8686
func (c *ClientEncryptionOptionsBuilder) SetKeyExpiration(expiration time.Duration) *ClientEncryptionOptionsBuilder {
8787
c.Opts = append(c.Opts, func(opts *ClientEncryptionOptions) error {
8888
opts.KeyExpiration = &expiration

0 commit comments

Comments
 (0)