mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
replace chan struct{}.
This commit is contained in:
parent
74dbdea78a
commit
e45bd7098f
4 changed files with 12 additions and 12 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue