Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
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, 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
|
||||||
|
|
Loading…
Reference in New Issue