summaryrefslogtreecommitdiff
path: root/exes/webhook/src/main.rs
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-15 17:03:29 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-15 17:03:29 +0400
commitcbcaa3c01ec4d9ed95dc5af8232de1d10191bc44 (patch)
tree02cd56bb6eba762024c33f2df3cbec4f7a1a27e1 /exes/webhook/src/main.rs
parentc06cf52e887cc560f1fd4fa72713b239fe0102a6 (diff)
add metrics and jemalloc
Diffstat (limited to 'exes/webhook/src/main.rs')
-rw-r--r--exes/webhook/src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/exes/webhook/src/main.rs b/exes/webhook/src/main.rs
index f531725..9432dbd 100644
--- a/exes/webhook/src/main.rs
+++ b/exes/webhook/src/main.rs
@@ -1,4 +1,11 @@
use leash::ignite;
use webhook::WebhookServer;
+#[cfg(not(target_env = "msvc"))]
+use tikv_jemallocator::Jemalloc;
+
+#[cfg(not(target_env = "msvc"))]
+#[global_allocator]
+static GLOBAL: Jemalloc = Jemalloc;
+
ignite!(WebhookServer);