aboutsummaryrefslogtreecommitdiff
path: root/src/rest.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.erl')
-rw-r--r--src/rest.erl10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/rest.erl b/src/rest.erl
index 34e72a674..a3fb0eef2 100644
--- a/src/rest.erl
+++ b/src/rest.erl
@@ -37,12 +37,7 @@
start(Host) ->
p1_http:start(),
- Pool_size =
- ejabberd_config:get_option({ext_api_http_pool_size, Host},
- fun(X) when is_integer(X), X > 0->
- X
- end,
- 100),
+ Pool_size = ejabberd_config:get_option({ext_api_http_pool_size, Host}, 100),
p1_http:set_pool_size(Pool_size).
stop(_Host) ->
@@ -167,9 +162,6 @@ base_url(Server, Path) ->
<<"http", _Url/binary>> -> Tail;
_ ->
Base = ejabberd_config:get_option({ext_api_url, Server},
- fun(X) ->
- iolist_to_binary(X)
- end,
<<"http://localhost/api">>),
<<Base/binary, "/", Tail/binary>>
end.