Skip to content

Commit 1fa2249

Browse files
committed
fix: fixing typo in menthod name: getRemaingRetryTime()->getRemainingRetryTime()
1 parent 7a5be54 commit 1fa2249

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Changelog
2-
## 3.6.0 [in progress]
3-
### Features
4-
2+
## 3.5.1 [in progress]
53
### Fixes
4+
- [#114](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/114) - Renamed `getRemaingRetryTime()`->`getRemainingRetryTime()`
65

76
## 3.5.0 [2020-10-30]
87
### Features
@@ -15,7 +14,7 @@
1514

1615
### Fixes
1716
- [#108](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/108) - Added optional param for specifying decimal places of double.: `void Point::addField(String name, double value, int decimalPlaces = 2)`
18-
- [#111](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/110) - Fixed blocked writing after another point reached max retry count (#110)
17+
- [#111](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/111) - Fixed blocked writing after another point reached max retry count (#110)
1918

2019
## 3.4.0 [2020-10-02]
2120
### Features

src/InfluxDbClient.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ bool InfluxDBClient::flushBuffer() {
424424
return flushBufferInternal(false);
425425
}
426426

427-
uint32_t InfluxDBClient::getRemaingRetryTime() {
427+
uint32_t InfluxDBClient::getRemainingRetryTime() {
428428
uint32_t rem = 0;
429429
if(_lastRetryAfter > 0) {
430430
int32_t diff = _lastRetryAfter - (millis()-_lastRequestTime)/1000;
@@ -434,7 +434,7 @@ uint32_t InfluxDBClient::getRemaingRetryTime() {
434434
}
435435

436436
bool InfluxDBClient::flushBufferInternal(bool flashOnlyFull) {
437-
uint32_t rwt = getRemaingRetryTime();
437+
uint32_t rwt = getRemainingRetryTime();
438438
if(rwt > 0) {
439439
INFLUXDB_CLIENT_DEBUG("[W] Cannot write yet, pause %ds, %ds yet\n", _lastRetryAfter, rwt);
440440
// retry after period didn't run out yet
@@ -485,7 +485,7 @@ bool InfluxDBClient::flushBufferInternal(bool flashOnlyFull) {
485485
}
486486
}
487487
}
488-
}
488+
}
489489
INFLUXDB_CLIENT_DEBUG("[D] Leaving data in buffer for retry, retryInterval: %d\n",_lastRetryAfter);
490490
// in case of retryable failure break loop
491491
break;
@@ -596,7 +596,7 @@ static const char QueryDialect[] PROGMEM = "\
596596
}}";
597597

598598
FluxQueryResult InfluxDBClient::query(String fluxQuery) {
599-
uint32_t rwt = getRemaingRetryTime();
599+
uint32_t rwt = getRemainingRetryTime();
600600
if(rwt > 0) {
601601
INFLUXDB_CLIENT_DEBUG("[W] Cannot query yet, pause %ds, %ds yet\n", _lastRetryAfter, rwt);
602602
// retry after period didn't run out yet

src/InfluxDbClient.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class InfluxDBClient {
120120
// Validates connection parameters by conecting to server
121121
// Returns true if successful, false in case of any error
122122
bool validateConnection();
123-
// Writes record in InfluxDB line protocol format to write buffer
123+
// Writes record in InfluxDB line protocol format to write buffer.
124124
// Returns true if successful, false in case of any error
125125
bool writeRecord(String &record);
126126
// Writes record represented by Point to buffer
@@ -150,10 +150,10 @@ class InfluxDBClient {
150150
String getServerUrl() const { return _serverUrl; }
151151
// Check if it is possible to send write/query request to server.
152152
// Returns true if write or query can be send, or false, if server is overloaded and retry strategy is applied.
153-
// Use getRemaingRetryTime() to get wait time in such case.
154-
bool canSendRequest() { return getRemaingRetryTime() == 0; }
153+
// Use getRemainingRetryTime() to get wait time in such case.
154+
bool canSendRequest() { return getRemainingRetryTime() == 0; }
155155
// Returns remaining wait time in seconds when retry strategy is applied.
156-
uint32_t getRemaingRetryTime();
156+
uint32_t getRemainingRetryTime();
157157
protected:
158158
// Checks params and sets up security, if needed.
159159
// Returns true in case of success, otherwise false

0 commit comments

Comments
 (0)