Skip to content

Commit

Permalink
Remove unnecessary global variables (Signed-off-by: Jeffrey Liu ujeff…
Browse files Browse the repository at this point in the history
[email protected])

Signed-off-by: CoderJeffrey <[email protected]>
  • Loading branch information
CoderJeffrey committed Jun 27, 2023
1 parent 43208c7 commit 55cd8c0
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ public class SearchBackPressureMetricsSnapShot implements Removable {
private final String tableName;
private List<Field<?>> columns;

// Global variables for naming
private static final String SEARCHBP_CONTROLLER_NAME_VALUE = "ControllerName";
private static final String SEARCHBP_MODE_VALUE = "searchbp_mode";

// Create a table with specifed fields (columns)
public SearchBackPressureMetricsSnapShot(Connection conn, Long windowStartTime) {
this.create = DSL.using(conn, SQLDialect.SQLITE);
Expand Down Expand Up @@ -161,7 +157,8 @@ public DSLContext getDSLContext() {
}

public BatchBindStep startBatchPut() {
// Add dummy values because jooq requires this to support multiple bind statements with single insert query
// Add dummy values because jooq requires this to support multiple bind statements with
// single insert query
List<Object> dummyValues = new ArrayList<>();
for (int i = 0; i < columns.size(); i++) {
dummyValues.add(null);
Expand Down

0 comments on commit 55cd8c0

Please sign in to comment.