diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-16 17:30:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-16 18:49:19 +0200 |
commit | 1c025570139f614f2083b935e2c58d5dbf199c2f (patch) | |
tree | 9321ae5a7ee87e6a8b220d27aad6a8999d6fa3bd /send.go | |
parent | 32d2148835d28f5927daee2d1206c88ac343cfb3 (diff) |
send: use accessor function for buffer pool
Diffstat (limited to 'send.go')
-rw-r--r-- | send.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(), } } |