Compare commits

...

1 Commits

Author SHA1 Message Date
Laurence Withers 596691457a Fix passing incorrect attrs slice to WireWrite 2024-04-05 13:44:49 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func (c *Conn) EntryErr(pri Priority, msg string, attrs []Attr) error {
}) })
a = append(a, c.Common...) a = append(a, c.Common...)
a = append(a, attrs...) a = append(a, attrs...)
err := c.WriteAttrs(attrs) err := c.WriteAttrs(a)
slices.Delete(a, 0, len(a)) // ensure GC doesn't see refs to old data slices.Delete(a, 0, len(a)) // ensure GC doesn't see refs to old data
c.atts.Put(a) c.atts.Put(a)
return err return err