We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f8bd921 + 96580fe commit c57c09dCopy full SHA for c57c09d
src/main/java/org/influxdb/impl/InfluxDBImpl.java
@@ -71,6 +71,7 @@ public class InfluxDBImpl implements InfluxDB {
71
private final InetAddress hostAddress;
72
private final String username;
73
private final String password;
74
+ private String version;
75
private final Retrofit retrofit;
76
private final InfluxDBService influxDBService;
77
private BatchProcessor batchProcessor;
@@ -313,7 +314,10 @@ public Pong ping() {
313
314
315
@Override
316
public String version() {
- return ping().getVersion();
317
+ if (version == null) {
318
+ this.version = ping().getVersion();
319
+ }
320
+ return this.version;
321
}
322
323
0 commit comments