From 104778e5e52fde844eb099711ac2a097e2faa286 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 29 Jul 2019 12:52:32 +0100 Subject: [PATCH] move lock --- network/router/service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/router/service/service.go b/network/router/service/service.go index 004959cc..09806cd3 100644 --- a/network/router/service/service.go +++ b/network/router/service/service.go @@ -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