mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
move lock
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
)
|
||||
|
||||
type svc struct {
|
||||
sync.RWMutex
|
||||
opts router.Options
|
||||
router pb.RouterService
|
||||
status router.Status
|
||||
@@ -22,7 +23,6 @@ type svc struct {
|
||||
errChan chan error
|
||||
advertChan chan *router.Advert
|
||||
wg *sync.WaitGroup
|
||||
sync.RWMutex
|
||||
}
|
||||
|
||||
// NewRouter creates new service router and returns it
|
||||
|
Reference in New Issue
Block a user