Permalink
Browse files

Fixed minor bug in pool.

  • Loading branch information...
1 parent 8968d0b commit f6abb3abbe5661b6acbe4d7dcf12be5d0948ea9d @fmgoncalves committed Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cassandra/Pool.pm
View
2 lib/Cassandra/Pool.pm
@@ -53,7 +53,7 @@ sub new {
@{ $loadbalancer->get()->describe_ring($keyspace) } )
{
next if $opt->{server_name} eq $_;
- my %params = {$opt};
+ my %params = %$opt;
$params{server_name} = $_;
$loadbalancer->add_pool(ResourcePool->new(Cassandra::Pool::CassandraServerFactory->new(\%params)));
}

0 comments on commit f6abb3a

Please sign in to comment.