Skip to content

Commit 7cd2173

Browse files
fix a typo. "DefualtConnectRetryMax" --> "DefaultConnectRetryMax" (#72)
fix a typo. "DefualtConnectRetryMax" --> "DefaultConnectRetryMax"
1 parent c08655b commit 7cd2173

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/session.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
const (
4141
DefaultTimeZone = "Asia/Shanghai"
4242
DefaultFetchSize = 1024
43-
DefualtConnectRetryMax = 3
43+
DefaultConnectRetryMax = 3
4444
)
4545

4646
var errLength = errors.New("deviceIds, times, measurementsList and valuesList's size should be equal")
@@ -79,7 +79,7 @@ func (s *Session) Open(enableRPCCompression bool, connectionTimeoutInMs int) err
7979
}
8080

8181
if s.config.ConnectRetryMax <= 0 {
82-
s.config.ConnectRetryMax = DefualtConnectRetryMax
82+
s.config.ConnectRetryMax = DefaultConnectRetryMax
8383
}
8484

8585
var protocolFactory thrift.TProtocolFactory
@@ -145,7 +145,7 @@ func (s *Session) OpenCluster(enableRPCCompression bool) error {
145145
}
146146

147147
if s.config.ConnectRetryMax <= 0 {
148-
s.config.ConnectRetryMax = DefualtConnectRetryMax
148+
s.config.ConnectRetryMax = DefaultConnectRetryMax
149149
}
150150

151151
var protocolFactory thrift.TProtocolFactory
@@ -1059,7 +1059,7 @@ func (s *Session) initClusterConn(node endPoint) error {
10591059
}
10601060

10611061
if s.config.ConnectRetryMax < 1 {
1062-
s.config.ConnectRetryMax = DefualtConnectRetryMax
1062+
s.config.ConnectRetryMax = DefaultConnectRetryMax
10631063
}
10641064

10651065
var protocolFactory thrift.TProtocolFactory

0 commit comments

Comments
 (0)