move lock
This commit is contained in:
parent
104778e5e5
commit
11f80708ce
@ -7,10 +7,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type svcWatcher struct {
|
type svcWatcher struct {
|
||||||
|
sync.RWMutex
|
||||||
opts router.WatchOptions
|
opts router.WatchOptions
|
||||||
resChan chan *router.Event
|
resChan chan *router.Event
|
||||||
done chan struct{}
|
done chan struct{}
|
||||||
sync.RWMutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next is a blocking call that returns watch result
|
// Next is a blocking call that returns watch result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user