From 5219d081a94c579a3f63982f132aabee509fbfb6 Mon Sep 17 00:00:00 2001 From: Cyril Galibern Date: Fri, 12 Jul 2024 18:57:33 +0200 Subject: [PATCH] [daemonsubsystem] Fix Heartbeat.DeepCopy (om mon -> hb col 'unknown') --- daemon/daemonsubsystem/hb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemonsubsystem/hb.go b/daemon/daemonsubsystem/hb.go index 41dc59c59..1ee005d1f 100644 --- a/daemon/daemonsubsystem/hb.go +++ b/daemon/daemonsubsystem/hb.go @@ -58,7 +58,7 @@ type ( ) func (c *Heartbeat) DeepCopy() *Heartbeat { - streams := make([]HeartbeatStream, len(c.Streams)) + streams := make([]HeartbeatStream, 0, len(c.Streams)) for _, stream := range c.Streams { streams = append(streams, *stream.DeepCopy()) }