refactor: Metrics server port

master
Sean McBride 2 years ago
parent cdca93f317
commit 66aa87a152

@ -16,6 +16,7 @@
/* We run threads on the "reserved OS core" using blocking semantics */ /* We run threads on the "reserved OS core" using blocking semantics */
#define METRICS_SERVER_CORE_ID 0 #define METRICS_SERVER_CORE_ID 0
#define METRICS_SERVER_PORT 1776
static pthread_attr_t metrics_server_thread_settings; static pthread_attr_t metrics_server_thread_settings;
struct tcp_server metrics_server; struct tcp_server metrics_server;
@ -26,7 +27,7 @@ extern void metrics_server_route_level_metrics_render(FILE *ostream);
void void
metrics_server_init() metrics_server_init()
{ {
tcp_server_init(&metrics_server, 1776); tcp_server_init(&metrics_server, METRICS_SERVER_PORT);
int rc = tcp_server_listen(&metrics_server); int rc = tcp_server_listen(&metrics_server);
assert(rc == 0); assert(rc == 0);

Loading…
Cancel
Save