Skip to content

InfluxDBClient should dispose the child clients #33

@bednar

Description

@bednar

influxdata/influxdb-client-csharp#17

Calling InfluxDBClient.close should also close a created writeApi:

InfluxDBClient influxDBClient = InfluxDBClientFactory.create(influxdbConfig.getAddress(), influxdbConfig.getToken().toCharArray());

WriteApi writeApi = influxDBClient.getWriteApi();
writeApi.writeRecord("b1", "org1", WritePrecision.NS,"h2o_feet water_level=1.0 1")

# unnecessary
writeApi.close();

influxDBClient.close();

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions