mirror of
https://git.zx2c4.com/wireguard-go
synced 2026-08-16 20:26:42 +00:00
send: use accessor function for buffer pool
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user