[tor-commits] [tor] 04/04: metrics: Add ticket 40546 changes file and code fix

gitolite role git at cupani.torproject.org
Wed May 24 14:45:52 UTC 2023


This is an automated email from the git hooks/post-receive script.

dgoulet pushed a commit to branch main
in repository tor.

commit 8eae9f17ae87e16ab7595544d858e9371d9068c2
Author: David Goulet <dgoulet at torproject.org>
AuthorDate: Wed May 24 10:42:00 2023 -0400

    metrics: Add ticket 40546 changes file and code fix
    
    The MR was using an old function definition so the code fix is for that.
    
    Closes #40546
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 changes/ticket40546               | 3 +++
 src/feature/relay/relay_metrics.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/ticket40546 b/changes/ticket40546
new file mode 100644
index 0000000000..93f19f74c1
--- /dev/null
+++ b/changes/ticket40546
@@ -0,0 +1,3 @@
+  o Minor feature (MetricsPort, relay):
+    - Expose time until online keys expires on the MetricsPort. Closes ticket
+      40546.
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c
index 494cfb34dd..5309411804 100644
--- a/src/feature/relay/relay_metrics.c
+++ b/src/feature/relay/relay_metrics.c
@@ -1014,7 +1014,7 @@ fill_signing_cert_expiry(void)
     signing_key = get_master_signing_key_cert();
     if (signing_key) {
       sentry = metrics_store_add(the_store, rentry->type, rentry->name,
-                                 rentry->help);
+                                 rentry->help, 0, NULL);
       metrics_store_entry_update(sentry, signing_key->valid_until);
     }
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list