summaryrefslogtreecommitdiffhomepage
path: root/send.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 17:30:46 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-16 18:49:19 +0200
commit1c025570139f614f2083b935e2c58d5dbf199c2f (patch)
tree9321ae5a7ee87e6a8b220d27aad6a8999d6fa3bd /send.go
parent32d2148835d28f5927daee2d1206c88ac343cfb3 (diff)
send: use accessor function for buffer pool
Diffstat (limited to 'send.go')
-rw-r--r--send.go2
1 files changed, 1 insertions, 1 deletions
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(),
}
}