use BUILDARGS intead of wrapping new, added make_immutable, removed unnneeded test...
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Replicated / Balancer / First.pm
index 495b41d..7c7ac6c 100644 (file)
@@ -1,6 +1,5 @@
 package DBIx::Class::Storage::DBI::Replicated::Balancer::First;
 
-use List::Util qw(shuffle);
 use Moose;
 with 'DBIx::Class::Storage::DBI::Replicated::Balancer';
 
@@ -36,7 +35,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 +48,6 @@ You may distribute this code under the same terms as Perl itself.
 
 =cut
 
+__PACKAGE__->meta->make_immutable;
+
 1;
\ No newline at end of file