Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: build EventGroup in libCurl Callback #1860

Merged
merged 12 commits into from
Nov 13, 2024
4 changes: 4 additions & 0 deletions core/prometheus/schedulers/ScrapeScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ size_t PromMetricWriteCallback(char* buffer, size_t size, size_t nmemb, void* da
return 0;
}

if (data == nullptr) {
catdogpandas marked this conversation as resolved.
Show resolved Hide resolved
return sizes;
}

auto* body = static_cast<PromMetricResponseBody*>(data);
catdogpandas marked this conversation as resolved.
Show resolved Hide resolved

size_t begin = 0;
Expand Down
Loading