Update comments/docs to match code
This commit is contained in:
@@ -196,17 +196,17 @@ struct Connection {
|
||||
* Use cases:
|
||||
* ```cpp
|
||||
* // Check if all data has been sent
|
||||
* if (conn->outgoingBytesQueued() == 0) {
|
||||
* if (conn->outgoing_bytes_queued() == 0) {
|
||||
* conn->reset(); // Safe to reset arena
|
||||
* }
|
||||
*
|
||||
* // Implement backpressure
|
||||
* if (conn->outgoingBytesQueued() > MAX_BUFFER_SIZE) {
|
||||
* if (conn->outgoing_bytes_queued() > MAX_BUFFER_SIZE) {
|
||||
* // Stop adding more data until queue drains
|
||||
* }
|
||||
*
|
||||
* // Logging/monitoring
|
||||
* metrics.recordQueueDepth(conn->get_id(), conn->outgoingBytesQueued());
|
||||
* metrics.recordQueueDepth(conn->get_id(), conn->outgoing_bytes_queued());
|
||||
* ```
|
||||
*/
|
||||
int64_t outgoing_bytes_queued() const {
|
||||
|
||||
Reference in New Issue
Block a user