From c786881df9de48ed556d115edd1cd240aac03053 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 4 Jan 2021 20:28:47 -0800 Subject: [PATCH] Add explicit type conversion from std::chrono::milliseconds to long (#450) --- .../opentelemetry/ext/http/client/curl/http_operation_curl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h index 1c11f6a9e2..45eac682e4 100644 --- a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h +++ b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h @@ -205,7 +205,7 @@ class HttpOperation /* wait for the socket to become ready for sending */ sockfd_ = sockextr; - if (!WaitOnSocket(sockfd_, 0, http_conn_timeout_.count()) || is_aborted_) + if (!WaitOnSocket(sockfd_, 0, static_cast(http_conn_timeout_.count())) || is_aborted_) { res_ = CURLE_OPERATION_TIMEDOUT; DispatchEvent( @@ -414,8 +414,6 @@ class HttpOperation // Socket parameters curl_socket_t sockfd_; - // long sockextr_ = 0; - curl_off_t nread_; size_t sendlen_ = 0; // # bytes sent by client size_t acklen_ = 0; // # bytes ack by server