Skip to content

Commit

Permalink
improve the code
Browse files Browse the repository at this point in the history
Summary: improve the code

Reviewed By: YousefSalama

Differential Revision: D54952837

fbshipit-source-id: e22ea2f65cab1c17968c7ffbebc9c097346887b5
  • Loading branch information
Liubov Dmitrieva authored and facebook-github-bot committed Mar 18, 2024
1 parent 1b3f77b commit e71a3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eden/mononoke/edenapi_service/src/handlers/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ impl EdenApiHandler for Files2Handler {
move |FileSpec { key, attrs }| {
if attrs.content {
ctx.perf_counters()
.add_to_counter(PerfCounterType::EdenapiFiles, 1);
.increment_counter(PerfCounterType::EdenapiFiles);
}
if attrs.aux_data {
ctx.perf_counters()
.add_to_counter(PerfCounterType::EdenapiFilesAuxData, 1);
.increment_counter(PerfCounterType::EdenapiFilesAuxData);
}
fetch_file_response(repo.clone(), key, attrs)
}
Expand Down

0 comments on commit e71a3fc

Please sign in to comment.