Skip to content

Commit 716ee13

Browse files
committed
session: remove unused consts
1 parent 2573a57 commit 716ee13

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

session.go

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,11 @@ const (
7474
// Strong mode is specific to mgo, and is same as Primary.
7575
Strong Mode = 2
7676

77-
// DefaultConnectionPoolSize defines the default maximum number of
77+
// DefaultConnectionPoolLimit defines the default maximum number of
7878
// connections in the connection pool.
7979
//
8080
// To override this value set DialInfo.PoolLimit.
81-
DefaultConnectionPoolSize = 4096
82-
83-
// DefaultReadTimeout is set to 60 seconds for backwards compatibility.
84-
//
85-
// See DialInfo.ReadTimeout
86-
DefaultReadTimeout = time.Second * 60
87-
88-
// DefaultWriteTimeout is set to 60 seconds for backwards compatibility.
89-
//
90-
// See DialInfo.WriteTimeout
91-
DefaultWriteTimeout = time.Second * 60
81+
DefaultConnectionPoolLimit = 4096
9282

9383
zeroDuration = time.Duration(0)
9484
)
@@ -501,16 +491,16 @@ type DialInfo struct {
501491
Password string
502492

503493
// PoolLimit defines the per-server socket pool limit. Defaults to
504-
// DefaultConnectionPoolSize. See Session.SetPoolLimit for details.
494+
// DefaultConnectionPoolLimit. See Session.SetPoolLimit for details.
505495
PoolLimit int
506496

507497
// PoolTimeout defines max time to wait for a connection to become available
508498
// if the pool limit is reached. Defaults to zero, which means forever. See
509499
// Session.SetPoolTimeout for details
510500
PoolTimeout time.Duration
511501

512-
// ReadTimeout defines the maximum duration to wait for a response from
513-
// MongoDB.
502+
// ReadTimeout defines the maximum duration to wait for a response to be
503+
// read from MongoDB.
514504
//
515505
// This effectively limits the maximum query execution time. If a MongoDB
516506
// query duration exceeds this timeout, the caller will receive a timeout,

0 commit comments

Comments
 (0)