mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
refactor: remove unnecessary conditional
we always have a flowWalker when not using ebpf
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user