Make unnecessary state variable a local variable

This commit is contained in:
mpilman 2019-02-17 22:08:28 -08:00 committed by Alex Miller
parent f79a9594c1
commit da67067a07
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ ACTOR Future<Reference<HTTP::Response>> doRequest_impl(Reference<BlobStoreEndpoi
bstore->setAuthHeaders(verb, resource, headers);
remoteAddress = rconn.conn->getPeerAddress();
wait(bstore->requestRate->getAllowance(1));
state Reference<HTTP::Response> _r = wait(timeoutError(HTTP::doRequest(rconn.conn, verb, resource, headers, &contentCopy, contentLen, bstore->sendRate, &bstore->s_stats.bytes_sent, bstore->recvRate), bstore->knobs.request_timeout));
Reference<HTTP::Response> _r = wait(timeoutError(HTTP::doRequest(rconn.conn, verb, resource, headers, &contentCopy, contentLen, bstore->sendRate, &bstore->s_stats.bytes_sent, bstore->recvRate), bstore->knobs.request_timeout));
r = _r;
// Since the response was parsed successfully (which is why we are here) reuse the connection unless we received the "Connection: close" header.