From 3966efc4d77f75f75a392851aaae6722d419111c Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Thu, 17 Aug 2023 16:47:40 -0400 Subject: [PATCH] Removed seen ordering requirement --- lib/apex/encoder/igate_tcp.rb | 4 ---- lib/apex/frame/immutable_path.rb | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/apex/encoder/igate_tcp.rb b/lib/apex/encoder/igate_tcp.rb index 3102ed6..4011030 100644 --- a/lib/apex/encoder/igate_tcp.rb +++ b/lib/apex/encoder/igate_tcp.rb @@ -165,10 +165,6 @@ module Apex while @packet_buffer.length > 0 packet = @packet_buffer.pop unless (filter_logresp and packet.start_with?('#')) - puts("====================================") - puts packet.class.to_s - puts packet.to_s - puts("-------------------------------------") return IGateTcp::decode_frame(packet) end end diff --git a/lib/apex/frame/immutable_path.rb b/lib/apex/frame/immutable_path.rb index d7c1319..cce3335 100644 --- a/lib/apex/frame/immutable_path.rb +++ b/lib/apex/frame/immutable_path.rb @@ -14,7 +14,6 @@ module Apex hops.each do |hop| raise ArgumentError.new("All arguments must not be nil: #{hops.to_s}") if (hop.nil?) raise ArgumentError.new("All arguments must be of type Hop: #{hops.class.to_s}") if not hop.kind_of? Apex::Hop - raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.join(',').to_s}") if (hop.seen?) && (!last_seen) last_seen = false if not hop.seen? @path_array << hop end -- GitLab