scylladb / scylla-go-driver

Experimental, high performance Scylla Driver, University of Warsaw students' project
Apache License 2.0
151 stars 7 forks source link

transport: pool, stop shard refill faster when context is done #291

Open Kulezi opened 2 years ago

Kulezi commented 2 years ago

Checking if context is done should be checked in the loop, returning early without relying on the result of OpenShardConn.

https://github.com/scylladb/scylla-go-driver/blob/88fc8ef65496a8d2ed514fdf5501016663c08635/transport/pool.go#L221-L264