heap allocation

This commit is contained in:
Niko Abeler 2023-02-16 21:12:15 +01:00
parent e09096e8e3
commit 21de378fbc
1 changed files with 2 additions and 2 deletions

View File

@ -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")