pod cleanup, fixed broken pod links, and new Introduction pod
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Replicated / Balancer / First.pm
index 495b41d..b230346 100644 (file)
@@ -1,12 +1,12 @@
 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
 
@@ -36,7 +36,7 @@ Just get the first storage.  Probably only good when you have one replicant.
 =cut
 
 sub next_storage {
-    return  (shift->pool->active_replicants)[0];
+  return  (shift->pool->active_replicants)[0];
 }
 
 =head1 AUTHOR
@@ -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;