From b52b2078cabfe226b04a0b63d7d5507b0e131591 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 25 May 2017 22:24:37 +0100 Subject: [PATCH] refactor: remove unnecessary conditional we always have a flowWalker when not using ebpf --- probe/endpoint/connection_tracker.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/probe/endpoint/connection_tracker.go b/probe/endpoint/connection_tracker.go index 6b66e7780..c437d9719 100644 --- a/probe/endpoint/connection_tracker.go +++ b/probe/endpoint/connection_tracker.go @@ -93,9 +93,7 @@ func (t *connectionTracker) ReportConnections(rpt *report.Report) { // seenTuples contains information about connections seen by conntrack and it will be passed to the /proc parser seenTuples := map[string]fourTuple{} - if t.flowWalker != nil { - t.performFlowWalk(rpt, &seenTuples) - } + t.performFlowWalk(rpt, &seenTuples) if t.conf.WalkProc && t.conf.Scanner != nil { t.performWalkProc(rpt, hostNodeID, &seenTuples) }