mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
go vet fixes
This commit is contained in:
parent
8acf81f61d
commit
05b8e3065e
6 changed files with 32 additions and 28 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue