Skip to content

Commit

Permalink
add missing error check when write
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Mar 12, 2024
1 parent 3be841d commit 3b3c54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/grpc_packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func writeGRPCPacket(ci gopacket.CaptureInfo, data []byte, conn *grpc.ClientConn
return fmt.Errorf("error writing packet header: %w", err)
}
// write 16 byte packet header & data all at once
conn.Client().Send(context.TODO(), &pbpacket.Packet{
_, err = conn.Client().Send(context.TODO(), &pbpacket.Packet{
Pcap: &anypb.Any{
Value: append(b, data...),
},
Expand Down

0 comments on commit 3b3c54e

Please sign in to comment.