Skip to content

Commit 8690c72

Browse files
author
Divjot Arora
authored
GODRIVER-1557 Clarify SetCompressors documentation (#367)
1 parent e9ad2b0 commit 8690c72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mongo/options/clientoptions.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,10 @@ func (c *ClientOptions) SetAuth(auth Credential) *ClientOptions {
377377
// 3. "zstd" - requires server version >= 4.2, and driver version >= 1.2.0 with cgo support enabled or driver version >= 1.3.0
378378
// without cgo
379379
//
380-
// To use compression, it must be enabled on the server as well. If this option is specified, the driver will perform a
381-
// negotiation with the server to determine a common list of of compressors and will use the first one in that list when
382-
// performing operations. See
380+
// If this option is specified, the driver will perform a negotiation with the server to determine a common list of of
381+
// compressors and will use the first one in that list when performing operations. See
383382
// https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-networkmessagecompressors for more
384-
// information about how to enable this feature on the server.
383+
// information about configuring compression on the server and the server-side defaults.
385384
//
386385
// This can also be set through the "compressors" URI option (e.g. "compressors=zstd,zlib,snappy"). The default is
387386
// an empty slice, meaning no compression will be enabled.

0 commit comments

Comments
 (0)