export structure & functions for relay (#214)

* export structure & functions for relay

Co-authored-by: jie.zeng <zengjie9004@gmail.com>
This commit is contained in:
cnderrauber
2021-11-30 14:08:32 +08:00
committed by GitHub
co-authored by jie.zeng
parent 6cf662cbe9
commit c47ad5e323
10 changed files with 68 additions and 78 deletions
+2 -2
View File
@@ -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