diff options
author | David Goulet <dgoulet@torproject.org> | 2022-10-27 10:45:08 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-10-27 10:45:08 -0400 |
commit | a1c40c8511b841db773e82bd8024ef3581262900 (patch) | |
tree | d8aa76a8cd174aabcb18a05c312ccf70b61bfbd5 /src/core | |
parent | 06a26f18727d3831339c138ccec07ea2f7935014 (diff) | |
download | tor-a1c40c8511b841db773e82bd8024ef3581262900.tar.gz tor-a1c40c8511b841db773e82bd8024ef3581262900.zip |
metrics: Fix naming and documentation
After nickm's review, minor changes to names and comments.
Related to #40194
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/connection_edge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c index 2a79d0cf58..5ef7a0982b 100644 --- a/src/core/or/connection_edge.c +++ b/src/core/or/connection_edge.c @@ -4120,7 +4120,7 @@ connection_exit_begin_resolve(cell_t *cell, or_circuit_t *circ) return -1; /* Note the RESOLVE stream as seen. */ - rep_hist_note_stream(RELAY_COMMAND_RESOLVE); + rep_hist_note_exit_stream(RELAY_COMMAND_RESOLVE); /* This 'dummy_conn' only exists to remember the stream ID * associated with the resolve request; and to make the @@ -4246,7 +4246,7 @@ connection_exit_connect(edge_connection_t *edge_conn) /* Note the BEGIN stream as seen. We do this after the Exit policy check in * order to only account for valid streams. */ - rep_hist_note_stream(RELAY_COMMAND_BEGIN); + rep_hist_note_exit_stream(RELAY_COMMAND_BEGIN); #ifdef HAVE_SYS_UN_H if (conn->socket_family != AF_UNIX) { @@ -4344,7 +4344,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn) log_info(LD_EXIT, "Opening local connection for anonymized directory exit"); /* Note the BEGIN_DIR stream as seen. */ - rep_hist_note_stream(RELAY_COMMAND_BEGIN_DIR); + rep_hist_note_exit_stream(RELAY_COMMAND_BEGIN_DIR); exitconn->base_.state = EXIT_CONN_STATE_OPEN; |