Skip to content

Commit

Permalink
Add default case to switches
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Nov 14, 2024
1 parent 31a37a6 commit ea746cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ private void emitIndexCreationSuccessMetric(String indexKind) {
case "mv":
MetricsUtil.addHistoricGauge(String.format("%s.%s.count", MetricConstants.CREATE_MV_INDICES, "success"), 1);
break;
default:
break;
}
}

Expand All @@ -156,6 +158,8 @@ private void emitIndexCreationFailureMetric(String indexKind) {
case "mv":
MetricsUtil.addHistoricGauge(String.format("%s.%s.count", MetricConstants.CREATE_MV_INDICES, "failed"), 1);
break;
default:
break;
}
}
}

0 comments on commit ea746cd

Please sign in to comment.