Update comments/docs to match code

This commit is contained in:
2025-09-12 11:40:38 -04:00
parent be5a0c6d8e
commit 674ff581e7
2 changed files with 11 additions and 8 deletions

View File

@@ -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 {