Fix passing incorrect attrs slice to WireWrite
This commit is contained in:
parent
c579349c05
commit
596691457a
2
conn.go
2
conn.go
|
@ -85,7 +85,7 @@ func (c *Conn) EntryErr(pri Priority, msg string, attrs []Attr) error {
|
|||
})
|
||||
a = append(a, c.Common...)
|
||||
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
|
||||
c.atts.Put(a)
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue