Skip to content

Commit

Permalink
eventqueue: Add missing godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi authored and joestringer committed Oct 23, 2020
1 parent 6b54fde commit 320b83f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/eventqueue/eventqueue.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Authors of Cilium
// Copyright 2019-2020 Authors of Cilium
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -43,8 +43,8 @@ var (
// `EventHandler` interface. This allows for different types of events to be
// processed by anything which chooses to utilize an `EventQueue`.
type EventQueue struct {

// This should always be a buffered channel.
// events represents the queue of events. This should always be a buffered
// channel.
events chan *Event

// close is closed once the EventQueue has been closed.
Expand All @@ -70,6 +70,8 @@ type EventQueue struct {

eventsMu lock.RWMutex

// eventsClosed is a channel that's closed when the event loop (Run())
// terminates.
eventsClosed chan struct{}
}

Expand Down

0 comments on commit 320b83f

Please sign in to comment.