couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1005282 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl
Date Wed, 06 Oct 2010 22:35:39 GMT
Author: fdmanana
Date: Wed Oct  6 22:35:39 2010
New Revision: 1005282

URL: http://svn.apache.org/viewvc?rev=1005282&view=rev
Log:
New replicator: use simpler api for spawning a link worker process.

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl?rev=1005282&r1=1005281&r2=1005282&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_api_wrap_httpc.erl Wed Oct  6 22:35:39
2010
@@ -41,8 +41,7 @@ send_req(#httpdb{headers = BaseHeaders} 
     ],
     Headers2 = oauth_header(HttpDb, Params) ++ BaseHeaders ++ Headers,
     Url = full_url(HttpDb, Params),
-    #url{host = Host, port = Port} = ibrowse_lib:parse_url(Url),
-    {ok, Worker} = ibrowse:spawn_link_worker_process(Host, Port),
+    {ok, Worker} = ibrowse:spawn_link_worker_process(Url),
     Response = ibrowse:send_req_direct(
             Worker, Url, Headers2, Method, Body, IbrowseOptions, infinity),
     process_response(Response, Worker, HttpDb, Params, Callback).



Mime
View raw message