Skip to content

Commit

Permalink
refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunqi08 committed Sep 26, 2024
1 parent dd6fea3 commit 1a3adbc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/plugin/flusher/sls/FlusherSLS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ void FlusherSLS::ClearInvalidConcurrencyLimiters() {
++iter;
}
}
for (auto iter = sLogstoreConcurrencyLimiterMap.begin(); iter != sLogstoreConcurrencyLimiterMap.end();) {
if (iter->second.expired()) {
iter = sLogstoreConcurrencyLimiterMap.erase(iter);
} else {
++iter;
}
}
}

mutex FlusherSLS::sDefaultRegionLock;
Expand Down

0 comments on commit 1a3adbc

Please sign in to comment.