make relays take the fast path maybe

This commit is contained in:
JackDoan
2026-05-06 13:26:54 -05:00
parent 264a25337b
commit f31f6c5d1f
2 changed files with 107 additions and 61 deletions
+1
View File
@@ -975,6 +975,7 @@ func (hm *HandshakeManager) continueHandshake(via ViaSender, hh *HandshakeHostIn
nb := make([]byte, 12, 12)
out := make([]byte, mtu)
for _, cp := range hh.packetStore {
//todo use a sendbatcher
cp.callback(cp.messageType, cp.messageSubType, hostinfo, cp.packet, nb, out)
}
f.cachedPacketMetrics.sent.Inc(int64(len(hh.packetStore)))