Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
henryzhx8 committed Dec 27, 2024
1 parent 23ba530 commit 9d61d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/plugin/flusher/sls/FlusherSLS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ bool FlusherSLS::BuildRequest(SenderQueueItem* item, unique_ptr<HttpSinkRequest>
}
if (data->mCurrentHost.empty()) {
if (mCandidateHostsInfo->IsInitialized()) {
GetRegionConcurrencyLimiter(mRegion)->OnFail();
GetRegionConcurrencyLimiter(mRegion)->OnFail(chrono::system_clock::now());
}
*errMsg = "failed to get available host";
*keepItem = true;
Expand Down
2 changes: 1 addition & 1 deletion core/unittest/models/MetricEventUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void MetricEventUnittest::TestTagsIterator() {
void MetricEventUnittest::TestCopy() {
MetricEvent* oldMetricEvent = mEventGroup->AddMetricEvent();
oldMetricEvent->SetValue(map<StringView, double>{{"test-1", 10.0}, {"test-2", 2.0}});
APSARA_TEST_EQUAL(1, mEventGroup->GetEvents().size());
APSARA_TEST_EQUAL(1U, mEventGroup->GetEvents().size());

PipelineEventGroup newGroup = mEventGroup->Copy();
MetricEvent newMetricEvent = newGroup.GetEvents().at(0).Cast<MetricEvent>();
Expand Down

0 comments on commit 9d61d3e

Please sign in to comment.