Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Remove support for ignore_providers option
COUCHDB-2796
  • Loading branch information
iilyak committed Sep 2, 2015
1 parent 36b2be5 commit 1d30ba1b05ca48e0482ad2df7cb617ebb5b07c29
Showing 3 changed files with 0 additions and 6 deletions.
@@ -107,7 +107,6 @@ There are multiple ways of doing the apply which is controlled by Opts
- ignore_errors - the call is wrapped into try/catch
- concurrent - spawn a new process for every service provider
- pipe - use output of one service provider as an input for the next one
- ignore_providers - do not fail if there are no providers for the service are available

Notes:

@@ -46,7 +46,6 @@

-type apply_opt()
:: ignore_errors
| ignore_providers
| concurrent
| pipe.

@@ -301,13 +301,9 @@ parse_opts([pipe|Rest], #opts{} = Acc) ->
parse_opts(Rest, Acc#opts{pipe = true});
parse_opts([concurrent|Rest], #opts{} = Acc) ->
parse_opts(Rest, Acc#opts{concurrent = true});
parse_opts([ignore_providers|Rest], #opts{} = Acc) ->
parse_opts(Rest, Acc#opts{ignore_providers = true});
parse_opts([], Acc) ->
Acc.

providers(Handle, Function, Arity, #opts{ignore_providers = true}) ->
Handle:providers(Function, Arity);
providers(Handle, Function, Arity, #opts{}) ->
Handle:providers(Function, Arity).

0 comments on commit 1d30ba1

Please sign in to comment.