move lock
This commit is contained in:
parent
ae99b9a887
commit
104778e5e5
@ -14,6 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type svc struct {
|
type svc struct {
|
||||||
|
sync.RWMutex
|
||||||
opts router.Options
|
opts router.Options
|
||||||
router pb.RouterService
|
router pb.RouterService
|
||||||
status router.Status
|
status router.Status
|
||||||
@ -22,7 +23,6 @@ type svc struct {
|
|||||||
errChan chan error
|
errChan chan error
|
||||||
advertChan chan *router.Advert
|
advertChan chan *router.Advert
|
||||||
wg *sync.WaitGroup
|
wg *sync.WaitGroup
|
||||||
sync.RWMutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRouter creates new service router and returns it
|
// NewRouter creates new service router and returns it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user