Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit c1e3bf0

Browse files
committed
clang reformat
1 parent 92cdaa1 commit c1e3bf0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/WebResponses.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
357357
++_in_flight_credit;
358358

359359
// for chunked responses ignore acks if there are no _in_flight_credits left
360-
if (_chunked && !_in_flight_credit){
360+
if (_chunked && !_in_flight_credit) {
361361
#ifdef ESP32
362362
log_d("(chunk) out of in-flight credits");
363363
#endif
@@ -379,7 +379,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
379379
_head = _head.substring(space);
380380
_writtenLength += request->client()->write(out.c_str(), out.length());
381381
_in_flight += out.length();
382-
--_in_flight_credit; // take a credit
382+
--_in_flight_credit; // take a credit
383383
return out.length();
384384
}
385385
}
@@ -389,9 +389,9 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
389389
// but flood asynctcp's queue and fragment socket buffer space for large responses.
390390
// Let's ignore polled acks and acks in case when we have more in-flight data then the available socket buff space.
391391
// That way we could balance on having half the buffer in-flight while another half is filling up, while minimizing events in asynctcp q
392-
if (_in_flight > space){
393-
//log_d("defer user call %u/%u", _in_flight, space);
394-
// take the credit back since we are ignoring this ack and rely on other inflight data
392+
if (_in_flight > space) {
393+
// log_d("defer user call %u/%u", _in_flight, space);
394+
// take the credit back since we are ignoring this ack and rely on other inflight data
395395
if (len)
396396
--_in_flight_credit;
397397
return 0;
@@ -452,7 +452,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest* request, size_t len, u
452452
if (outLen) {
453453
_writtenLength += request->client()->write((const char*)buf, outLen);
454454
_in_flight += outLen;
455-
--_in_flight_credit; // take a credit
455+
--_in_flight_credit; // take a credit
456456
}
457457

458458
if (_chunked) {

0 commit comments

Comments
 (0)