replace chan struct{}.

This commit is contained in:
Miroslav Šedivý
2021-10-04 14:40:20 +02:00
parent 74dbdea78a
commit e45bd7098f
4 changed files with 12 additions and 12 deletions

View File

@ -19,7 +19,7 @@ var mu = sync.Mutex{}
type DesktopManagerCtx struct {
logger zerolog.Logger
wg sync.WaitGroup
shutdown chan interface{}
shutdown chan struct{}
emmiter events.EventEmmiter
config *config.Desktop
}
@ -27,7 +27,7 @@ type DesktopManagerCtx struct {
func New(config *config.Desktop) *DesktopManagerCtx {
return &DesktopManagerCtx{
logger: log.With().Str("module", "desktop").Logger(),
shutdown: make(chan interface{}),
shutdown: make(chan struct{}),
emmiter: events.New(),
config: config,
}