Skip to content

Commit

Permalink
init metric calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuaiyuan committed Jan 22, 2025
1 parent 5fe5a6c commit 8e155e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void initService() {
}

private void calcTimerDistribution() {
// TODO fix
// TODO fix sync metric
int slotNumber = precisionMs / 100;
int rocksdbNumber = 0;
for (int i = 0; i < this.slotSize; i++) {
Expand Down Expand Up @@ -366,7 +366,7 @@ private void fetchAndPutTimerRequest() throws InterruptedException {
// sync cq read offset
timerMessageKVStore.writeAssignRecords(getColumnFamily(0), new ArrayList<>(), commitOffset.addAndGet(trs.size()));

// sync metric
// TODO sync metric
for (Map.Entry<Long, Map<Integer, List<TimerMessageRecord>>> entry : deleteMetric.entrySet()) {
long delayTime = entry.getKey();
for (Map.Entry<Integer, List<TimerMessageRecord>> entry1 : entry.getValue().entrySet()) {
Expand Down

0 comments on commit 8e155e3

Please sign in to comment.