Skip to content

Commit c730868

Browse files
newHostConnPool: remove unused port parameter
1 parent 05227e2 commit c730868

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

connectionpool.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ func (p *policyConnPool) SetHosts(hosts []*HostInfo) {
142142
pools <- newHostConnPool(
143143
p.session,
144144
host,
145-
p.port,
146145
p.numConns,
147146
p.keyspace,
148147
)
@@ -222,7 +221,6 @@ func (p *policyConnPool) addHost(host *HostInfo) {
222221
pool = newHostConnPool(
223222
p.session,
224223
host,
225-
host.Port(), // TODO: if port == 0 use pool.port?
226224
p.numConns,
227225
p.keyspace,
228226
)
@@ -272,9 +270,7 @@ func (h *hostConnPool) String() string {
272270
h.filling, h.closed, size, h.size, h.host)
273271
}
274272

275-
func newHostConnPool(session *Session, host *HostInfo, port, size int, // FIXME: Remove unused port parameter
276-
keyspace string) *hostConnPool {
277-
273+
func newHostConnPool(session *Session, host *HostInfo, size int, keyspace string) *hostConnPool {
278274
pool := &hostConnPool{
279275
session: session,
280276
host: host,

0 commit comments

Comments
 (0)