export structure & functions for relay (#214)
* export structure & functions for relay Co-authored-by: jie.zeng <zengjie9004@gmail.com>
This commit is contained in:
+2
-2
@@ -10,12 +10,12 @@ import (
|
||||
var Logger logr.Logger = logr.Discard()
|
||||
|
||||
var (
|
||||
packetFactory *sync.Pool
|
||||
PacketFactory *sync.Pool
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Init packet factory
|
||||
packetFactory = &sync.Pool{
|
||||
PacketFactory = &sync.Pool{
|
||||
New: func() interface{} {
|
||||
b := make([]byte, 1460)
|
||||
return &b
|
||||
|
||||
Reference in New Issue
Block a user