go vet fixes

This commit is contained in:
bonedaddy 2020-12-24 17:31:40 -08:00
commit 05b8e3065e
No known key found for this signature in database
GPG key ID: 5386234333106B29
6 changed files with 32 additions and 28 deletions

View file

@ -38,7 +38,7 @@ func (e Event) Label() string {
}
type EventPool struct {
sync.Mutex
*sync.Mutex
debug bool
silent bool
@ -48,6 +48,7 @@ type EventPool struct {
func NewEventPool(debug bool, silent bool) *EventPool {
return &EventPool{
Mutex: &sync.Mutex{},
debug: debug,
silent: silent,
events: make([]Event, 0),