Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Mar 9, 2024
1 parent 9275ad4 commit 58f8f36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -5408,9 +5408,8 @@ static int handle_ack_frame(quicly_conn_t *conn, struct st_quicly_handle_payload
* phase. */
int cc_limited = conn->super.ctx->cc_recognize_app_limited ? conn->egress.cc_limited : 1;
conn->egress.cc.type->cc_on_acked(&conn->egress.cc, &conn->egress.loss, (uint32_t)bytes_acked, frame.largest_acknowledged,
(uint32_t)(conn->egress.loss.sentmap.bytes_in_flight + bytes_acked),
cc_limited, conn->egress.packet_number, conn->stash.now,
conn->egress.max_udp_payload_size);
(uint32_t)(conn->egress.loss.sentmap.bytes_in_flight + bytes_acked), cc_limited,
conn->egress.packet_number, conn->stash.now, conn->egress.max_udp_payload_size);
QUICLY_PROBE(QUICTRACE_CC_ACK, conn, conn->stash.now, &conn->egress.loss.rtt, conn->egress.cc.cwnd,
conn->egress.loss.sentmap.bytes_in_flight);
}
Expand Down
7 changes: 3 additions & 4 deletions t/pacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,13 @@ static void test_fast(void)
now = test_pattern(&pacer, now, bytes_per_msec,
(const struct pattern[]){
{1, 84 * mtu, 84 * mtu}, /* borrow 800 bytes */
{2, 83 * mtu, 83 * mtu}, /* borrowing 400 bytes */
{3, 83 * mtu, 83 * mtu}, /* borrowing 0 bytes */
{4, 84 * mtu, 84 * mtu}, /* borrowing 800 bytes */
{2, 83 * mtu, 83 * mtu}, /* borrowing 400 bytes */
{3, 83 * mtu, 83 * mtu}, /* borrowing 0 bytes */
{4, 84 * mtu, 84 * mtu}, /* borrowing 800 bytes */
{0},
});
}


void test_pacer(void)
{
subtest("calc-rate", test_calc_rate);
Expand Down

0 comments on commit 58f8f36

Please sign in to comment.