heap allocation
This commit is contained in:
parent
e09096e8e3
commit
21de378fbc
|
@ -52,10 +52,10 @@ func main() {
|
||||||
|
|
||||||
var forever chan struct{}
|
var forever chan struct{}
|
||||||
|
|
||||||
shellPipe := Piper{}
|
shellPipe := new(Piper)
|
||||||
shellPipe.Start(&influx, &amqpConn, "shelly", "shellies.#", ShellyConverter)
|
shellPipe.Start(&influx, &amqpConn, "shelly", "shellies.#", ShellyConverter)
|
||||||
|
|
||||||
tasmotaPipe := Piper{}
|
tasmotaPipe := new(Piper)
|
||||||
tasmotaPipe.Start(&influx, &amqpConn, "tasmota", "tele.#.SENSOR", TasmotaConverter)
|
tasmotaPipe.Start(&influx, &amqpConn, "tasmota", "tele.#.SENSOR", TasmotaConverter)
|
||||||
|
|
||||||
log.Printf(" [*] Waiting for logs. To exit press CTRL+C")
|
log.Printf(" [*] Waiting for logs. To exit press CTRL+C")
|
||||||
|
|
Loading…
Reference in New Issue