WIP: I love it when they delete the assignment operator :)

This commit is contained in:
Cole Helbling
2022-04-06 11:41:04 -07:00
parent 15e8fa8aff
commit 5bff730f2c
3 changed files with 22 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
#include <memory>
#include <queue>
#include <prometheus/counter.h>
#include <prometheus/registry.h>
#include "db.hh"
@@ -434,10 +435,13 @@ private:
via gc_roots_dir. */
nix::Path rootsDir;
std::string metricsAddr;;
std::string metricsAddr;
std::shared_ptr<prometheus::Registry> registry;
// prometheus::Family<prometheus::Counter>& call_ctr_family;
prometheus::Counter& call_ctr;
public:
State(std::optional<std::string> metricsAddrOpt);