Skip to content

Commit

Permalink
Fix eventChan re declared error
Browse files Browse the repository at this point in the history
  • Loading branch information
navin772 committed Jul 24, 2024
1 parent a1a4694 commit 1034997
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/util/karmorlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,6 @@ func KarmorLogStart(logFilter string, ns string, op string, pod string) error {
return nil
}

// drainEventChan drains all events from the eventChan.
func drainEventChan() {
if eventChan == nil {
return
}
for {
select {
case <-eventChan:
default:
return
}
}
}

// KarmorGetLogs waits for logs from kubearmor. KarmorQueueLog() has to be called
// before this so that the channel is established.
func KarmorGetLogs(timeout time.Duration, maxEvents int) ([]*pb.Log, []*pb.Alert, error) {
Expand Down

0 comments on commit 1034997

Please sign in to comment.