Skip to content

Commit

Permalink
[Usage counters] Use refresh=false (elastic#195619)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Oct 10, 2024
1 parent 447617e commit 8ebd793
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe('storeCounter', () => {
],
Object {
"namespace": "default",
"refresh": false,
"upsertAttributes": Object {
"counterName": "b",
"counterType": "c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const storeCounter = async ({ metric, soRepository }: StoreCounterParams)
counterType,
source,
},
refresh: false,
}
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ describe('UsageCountersService', () => {
},
],
Object {
"refresh": false,
"upsertAttributes": Object {
"counterName": "counterA",
"counterType": "count",
Expand All @@ -175,6 +176,7 @@ describe('UsageCountersService', () => {
},
],
Object {
"refresh": false,
"upsertAttributes": Object {
"counterName": "counterB",
"counterType": "count",
Expand Down

0 comments on commit 8ebd793

Please sign in to comment.