thobbs / phpcassa

PHP client library for Apache Cassandra
thobbs.github.com/phpcassa
MIT License
248 stars 78 forks source link

Little cleanup #21

Closed wajam closed 13 years ago

wajam commented 13 years ago

In the ConnectionPool constructor, to permute the servers list, you can just do shuffle($servers); instead of that permutating loop thing :)

thobbs commented 13 years ago

Thanks! I didn't know about shuffle().