From 21de378fbc196b50300b34a28a5e0f56917d2df5 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Thu, 16 Feb 2023 21:12:15 +0100 Subject: [PATCH] heap allocation --- gatherer/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatherer/main.go b/gatherer/main.go index 3a9e12d..38ccd26 100644 --- a/gatherer/main.go +++ b/gatherer/main.go @@ -52,10 +52,10 @@ func main() { var forever chan struct{} - shellPipe := Piper{} + shellPipe := new(Piper) shellPipe.Start(&influx, &amqpConn, "shelly", "shellies.#", ShellyConverter) - tasmotaPipe := Piper{} + tasmotaPipe := new(Piper) tasmotaPipe.Start(&influx, &amqpConn, "tasmota", "tele.#.SENSOR", TasmotaConverter) log.Printf(" [*] Waiting for logs. To exit press CTRL+C")