From 1c025570139f614f2083b935e2c58d5dbf199c2f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 16 Sep 2018 17:30:46 +0200 Subject: send: use accessor function for buffer pool --- send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send.go b/send.go index 731c50a..37ae738 100644 --- a/send.go +++ b/send.go @@ -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(), } } -- cgit v1.2.3