From 775f2ad2cd774e7ede5c79c211b6f05f4db81630 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Wed, 18 Dec 2024 13:21:40 -0500 Subject: [PATCH] Fix initializing stats collector --- mailroom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailroom.go b/mailroom.go index 8a862419f..515ac997b 100644 --- a/mailroom.go +++ b/mailroom.go @@ -45,7 +45,7 @@ type Mailroom struct { // NewMailroom creates and returns a new mailroom instance func NewMailroom(config *runtime.Config) *Mailroom { mr := &Mailroom{ - rt: &runtime.Runtime{Config: config}, + rt: &runtime.Runtime{Config: config, Stats: runtime.NewStatsCollector()}, quit: make(chan bool), wg: &sync.WaitGroup{}, }