From 8093f1bc8a54c4f205460d4fbc1706f45bb6a195 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 16 Jun 2010 13:32:54 +0200 Subject: accept multiples hosts so we don't always hit the same node --- lib/Net/Riak/Client.pm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/Net/Riak/Client.pm') diff --git a/lib/Net/Riak/Client.pm b/lib/Net/Riak/Client.pm index fb4ce68..19d172f 100644 --- a/lib/Net/Riak/Client.pm +++ b/lib/Net/Riak/Client.pm @@ -3,13 +3,12 @@ package Net::Riak::Client; use Moose; use MIME::Base64; -with qw/Net::Riak::Role::REST Net::Riak::Role::UserAgent/; +with qw/ + Net::Riak::Role::REST + Net::Riak::Role::UserAgent + Net::Riak::Role::Hosts + /; -has host => ( - is => 'rw', - isa => 'Str', - default => 'http://127.0.0.1:8098' -); has prefix => ( is => 'rw', isa => 'Str', -- cgit v1.2.3