Skip to content

Commit

Permalink
[improve][writer][tdengine] remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Feb 2, 2024
1 parent a9f5b5a commit 2cd981a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ else if (column.getType() == Column.Type.STRING) {
count++;
}

SchemalessWriter writer = null;
SchemalessWriter writer;
try {
writer = new SchemalessWriter(conn);
} catch (SQLException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public OpentsdbDataHandler(Configuration config)
@Override
public int handle(RecordReceiver lineReceiver, TaskPluginCollector collector)
{
int count = 0;
int count;
try (Connection conn = DriverManager.getConnection(jdbcUrl, user, password);) {
LOG.info("connection[ jdbcUrl: " + jdbcUrl + ", username: " + user + "] established.");
writer = new SchemalessWriter(conn);
Expand Down

0 comments on commit 2cd981a

Please sign in to comment.