Permalink
Browse files

update the client_option() type to fix riakcs dialyzer error

  • Loading branch information...
1 parent 64ce65d commit c3b712d2e94e51f23581542471a302c1d22a0ea7 @argv0 argv0 committed Mar 18, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 include/riakc.hrl
View
@@ -26,9 +26,11 @@
-define(FIRST_RECONNECT_INTERVAL, 100).
-define(MAX_RECONNECT_INTERVAL, 30000).
--type client_option() :: queue_if_disconnected | {queue_if_disconnected, boolean()} |
- {connect_timeout, integer()} |
- auto_reconnect | {auto_reconnect, boolean()}.
+-type client_option() :: queue_if_disconnected |
+ {queue_if_disconnected, boolean()} |
+ {connect_timeout, pos_integer()} |
+ auto_reconnect |
+ {auto_reconnect, boolean()}.
%% Options for starting or modifying the connection:
%% `queue_if_disconnected' when present or true will cause requests to
%% be queued while the connection is down. `auto_reconnect' when

0 comments on commit c3b712d

Please sign in to comment.