Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDBClient should dispose the child clients #33

Closed
bednar opened this issue Jun 10, 2019 · 0 comments · Fixed by #79
Closed

InfluxDBClient should dispose the child clients #33

bednar opened this issue Jun 10, 2019 · 0 comments · Fixed by #79
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Jun 10, 2019

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();
@bednar bednar added the enhancement New feature or request label Jun 10, 2019
@bednar bednar self-assigned this Jun 10, 2019
@bednar bednar added this to the 1.0.0.M3 milestone Aug 1, 2019
@bednar bednar modified the milestones: 1.0.0.M3, 1.1.0 Aug 22, 2019
@bednar bednar removed this from the 1.1.0 milestone Oct 2, 2019
@bednar bednar added this to the 1.5.0 milestone Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant