소스 검색

conn: default TimeoutLimit to 0 and depreciate (#1140)

updates #1131
Chris Bannister 7 년 전
부모
커밋
a440a5bda8
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      conn.go

+ 4 - 3
conn.go

@@ -20,7 +20,6 @@ import (
 	"time"
 
 	"github.com/gocql/gocql/internal/lru"
-
 	"github.com/gocql/gocql/internal/streams"
 )
 
@@ -116,8 +115,10 @@ func (fn connErrorHandlerFn) HandleError(conn *Conn, err error, closed bool) {
 // If not zero, how many timeouts we will allow to occur before the connection is closed
 // and restarted. This is to prevent a single query timeout from killing a connection
 // which may be serving more queries just fine.
-// Default is 10, should not be changed concurrently with queries.
-var TimeoutLimit int64 = 10
+// Default is 0, should not be changed concurrently with queries.
+//
+// depreciated
+var TimeoutLimit int64 = 0
 
 // Conn is a single connection to a Cassandra node. It can be used to execute
 // queries, but users are usually advised to use a more reliable, higher