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

add more logs

This commit is contained in:
源文雨
2023-08-03 21:47:10 +08:00
parent 61d979bb41
commit a1bd09d107
2 changed files with 4 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import (
func (l *Link) WriteAndPut(p *head.Packet, istransfer bool) (n int, err error) {
teatype := uint8(rand.Intn(16))
sndcnt := atomic.AddUintptr(&l.sendcount, 1)
logrus.Debugln("[send] count:", sndcnt, "additional data:", uint16(sndcnt))
if len(p.Data) <= int(l.mtu) {
if !istransfer {
p.FillHash()