From d4aff3bac93fd343ef5ef77d22f1113154b28d83 Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Mon, 19 Sep 2016 16:32:30 +0200 Subject: [PATCH] Remove pointer receiver from method signature method does not need to modify caller --- probe/endpoint/ebpf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/endpoint/ebpf.go b/probe/endpoint/ebpf.go index 6573880b6..5d819e070 100644 --- a/probe/endpoint/ebpf.go +++ b/probe/endpoint/ebpf.go @@ -142,7 +142,7 @@ func (t *EbpfTracker) run() { } // WalkEvents - walk through the connectionEvents -func (t *EbpfTracker) WalkEvents(f func(ConnectionEvent)) { +func (t EbpfTracker) WalkEvents(f func(ConnectionEvent)) { for _, event := range t.Events { f(event) }