X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FReplicated%2FBalancer%2FFirst.pm;h=806a05f0b689c9f1a8cd4a55f9881b039a10dee5;hb=48580715af3072905f2c71dc27e7f70f21a11338;hp=9ccc406b097dc60384add58992c966d1c1c7d4a2;hpb=64cdad22d9b4022de379ae43174c15ce8dc81b59;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/Replicated/Balancer/First.pm b/lib/DBIx/Class/Storage/DBI/Replicated/Balancer/First.pm index 9ccc406..806a05f 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated/Balancer/First.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated/Balancer/First.pm @@ -1,25 +1,25 @@ package DBIx::Class::Storage::DBI::Replicated::Balancer::First; -use List::Util qw(shuffle); use Moose; with 'DBIx::Class::Storage::DBI::Replicated::Balancer'; +use namespace::clean -except => 'meta'; =head1 NAME -DBIx::Class::Storage::DBI::Replicated::Balancer::First; Just get the First Balancer +DBIx::Class::Storage::DBI::Replicated::Balancer::First - Just get the First Balancer =head1 SYNOPSIS This class is used internally by L. You shouldn't need to create instances of this class. - + =head1 DESCRIPTION Given a pool (L) of replicated database's (L), defines a method by which query load can be spread out across each replicant in the pool. -This Balancer just get's whatever is the first replicant in the pool +This Balancer just gets whichever is the first replicant in the pool. =head1 ATTRIBUTES @@ -49,4 +49,6 @@ You may distribute this code under the same terms as Perl itself. =cut -1; \ No newline at end of file +__PACKAGE__->meta->make_immutable; + +1;