Skip to content

Commit cd80d19

Browse files
committed
Fix compiling error
1 parent 0d409d4 commit cd80d19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

exporters/otlp/src/otlp_grpc_client.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,11 @@ std::shared_ptr<OtlpGrpcClientAsyncData> OtlpGrpcClient::MutableAsyncData(
560560
{
561561
if (!async_data_)
562562
{
563-
async_data_ = std::make_shared<OtlpGrpcClientAsyncData>();
564-
async_data_->export_timeout = options.timeout;
563+
async_data_ = std::make_shared<OtlpGrpcClientAsyncData>();
564+
async_data_->export_timeout = options.timeout;
565+
#ifdef ENABLE_ASYNC_EXPORT
565566
async_data_->max_concurrent_requests = options.max_concurrent_requests;
567+
#endif
566568
}
567569

568570
return async_data_;

0 commit comments

Comments
 (0)