send: use accessor function for buffer pool

This commit is contained in:
Jason A. Donenfeld 2018-09-16 17:30:46 +02:00
parent 32d2148835
commit 1c02557013

View file

@ -54,7 +54,7 @@ type QueueOutboundElement struct {
func (device *Device) NewOutboundElement() *QueueOutboundElement {
return &QueueOutboundElement{
dropped: AtomicFalse,
buffer: device.pool.messageBuffers.Get().(*[MaxMessageSize]byte),
buffer: device.GetMessageBuffer(),
}
}