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

@ -27,8 +27,8 @@ type ScreencastManagerCtx struct {
image types.Sample
sample chan types.Sample
sampleStop chan interface{}
sampleUpdate chan interface{}
sampleStop chan struct{}
sampleUpdate chan struct{}
enabled bool
started bool
@ -44,8 +44,8 @@ func screencastNew(enabled bool, pipelineStr string) *ScreencastManagerCtx {
manager := &ScreencastManagerCtx{
logger: logger,
pipelineStr: pipelineStr,
sampleStop: make(chan interface{}),
sampleUpdate: make(chan interface{}),
sampleStop: make(chan struct{}),
sampleUpdate: make(chan struct{}),
enabled: enabled,
started: false,
}