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

A typo in WriteOptions.gzipThresholdSafe #109

Closed
igalkin opened this issue Mar 7, 2024 · 1 comment · Fixed by #108
Closed

A typo in WriteOptions.gzipThresholdSafe #109

igalkin opened this issue Mar 7, 2024 · 1 comment · Fixed by #108
Labels
bug Something isn't working
Milestone

Comments

@igalkin
Copy link

igalkin commented Mar 7, 2024

Specifications

  • Client Version: 0.6.0
  • InfluxDB Version: 3
  • Platform: Windows

Code sample to reproduce problem

Integer threshold = writeOptions.gzipThresholdSafe(config);

Expected behavior

There is a typo in WriteOptions.gzipThresholdSafe:
: (config.getWritePrecision() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

Should be :
: (config.getGzipThreshold() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

: (config.getWritePrecision() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

Actual behavior

There is a typo in WriteOptions.gzipThresholdSafe:
: (config.getWritePrecision() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

Should be :
: (config.getGzipThreshold() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

: (config.getWritePrecision() != null ? config.getGzipThreshold() : DEFAULT_GZIP_THRESHOLD);

Additional info

No response

@igalkin igalkin added the bug Something isn't working label Mar 7, 2024
@bednar
Copy link
Member

bednar commented Mar 7, 2024

@igalkin thanks for report this. I will fix it in #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants