Lint ignore

This commit is contained in:
Zoltán Papp 2024-11-01 00:08:48 +01:00
parent 8f5cefaf3a
commit 812b08c473

View File

@ -177,7 +177,7 @@ func (s *ICEBind) createIPv4ReceiverFn(pc *ipv4.PacketConn, conn *net.UDPConn, r
if runtime.GOOS == "linux" || runtime.GOOS == "android" { if runtime.GOOS == "linux" || runtime.GOOS == "android" {
if rxOffload { if rxOffload {
readAt := len(*msgs) - (wgConn.IdealBatchSize / wgConn.UdpSegmentMaxDatagrams) readAt := len(*msgs) - (wgConn.IdealBatchSize / wgConn.UdpSegmentMaxDatagrams)
//nolint:ineffassign //nolint
numMsgs, err = pc.ReadBatch((*msgs)[readAt:], 0) numMsgs, err = pc.ReadBatch((*msgs)[readAt:], 0)
if err != nil { if err != nil {
return 0, err return 0, err