File tree 1 file changed +0
-17
lines changed
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,6 @@ type scyllaConnPicker struct {
217
217
nrShards int
218
218
msbIgnore uint64
219
219
pos uint64
220
- dialer Dialer
221
220
lastAttemptedShard int
222
221
shardAwarePortDisabled bool
223
222
@@ -254,29 +253,13 @@ func newScyllaConnPicker(conn *Conn) *scyllaConnPicker {
254
253
shardAwareAddress : shardAwareAddress ,
255
254
nrShards : conn .scyllaSupported .nrShards ,
256
255
msbIgnore : conn .scyllaSupported .msbIgnore ,
257
- dialer : makeDialerForScyllaConnPicker (conn ),
258
256
lastAttemptedShard : 0 ,
259
257
shardAwarePortDisabled : conn .session .cfg .DisableShardAwarePort ,
260
258
261
259
disableShardAwarePortUntil : new (atomic.Value ),
262
260
}
263
261
}
264
262
265
- func makeDialerForScyllaConnPicker (conn * Conn ) Dialer {
266
- cfg := conn .session .connCfg
267
- dialer := cfg .Dialer
268
- if dialer == nil {
269
- d := & ScyllaShardAwareDialer {}
270
- d .Timeout = cfg .ConnectTimeout
271
- if cfg .Keepalive > 0 {
272
- d .KeepAlive = cfg .Keepalive
273
- }
274
- dialer = d
275
- }
276
-
277
- return dialer
278
- }
279
-
280
263
func (p * scyllaConnPicker ) Pick (t token ) * Conn {
281
264
if len (p .conns ) == 0 {
282
265
return nil
You can’t perform that action at this time.
0 commit comments