1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-28 23:00:26 +08:00

optimize(orbyte): use manual destroy

This commit is contained in:
源文雨
2025-04-04 01:26:37 +09:00
parent 82c6136782
commit b5992574ec
16 changed files with 83 additions and 28 deletions

View File

@@ -22,7 +22,7 @@ var (
type LinkData struct {
H head.Packet
D pbuf.Bytes
D []byte
}
// Link 是本机到 peer 的连接抽象
@@ -74,7 +74,7 @@ func (l *Link) ToLower(header *head.Packet, data pbuf.Bytes) {
if l.pipe != nil {
l.pipe <- LinkData{
H: *header,
D: data,
D: data.Copy().Trans(),
}
if config.ShowDebugLog {
logrus.Debugln("[listen] deliver to pipe of", l.peerip)