summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/rpki.go
diff options
context:
space:
mode:
authorSergey Elantsev <elantsev.s@yandex.ru>2020-03-09 15:19:17 +0300
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2020-03-11 06:21:16 +0900
commit136c8222c493a9a5a44a89db153571f7ae5d75a5 (patch)
treefaf88fdeabfd8c9a466159c18c09e29992a8f41d /pkg/server/rpki.go
parent077e3aa5ca05f4d9341f20d19c3bf6c6d8fedb69 (diff)
fixed style: unnecessary type cast after type switch and some minor issues.
Diffstat (limited to 'pkg/server/rpki.go')
-rw-r--r--pkg/server/rpki.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/server/rpki.go b/pkg/server/rpki.go
index 9eb3d2b7..00fbfcfa 100644
--- a/pkg/server/rpki.go
+++ b/pkg/server/rpki.go
@@ -64,10 +64,10 @@ type roaManager struct {
func newROAManager(table *table.ROATable) *roaManager {
m := &roaManager{
- table: table,
+ eventCh: make(chan *roaEvent),
+ clientMap: make(map[string]*roaClient),
+ table: table,
}
- m.eventCh = make(chan *roaEvent)
- m.clientMap = make(map[string]*roaClient)
return m
}