summaryrefslogtreecommitdiffhomepage
path: root/server/rpki.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/rpki.go')
-rw-r--r--server/rpki.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/rpki.go b/server/rpki.go
index dc8a94cc..ec7c9afe 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -137,8 +137,8 @@ func (c *roaClient) handleGRPC(grpcReq *GrpcRequest) {
break
}
+ results := make([]*GrpcResponse, 0)
if tree, ok := c.roas[grpcReq.RouteFamily]; ok {
- results := make([]*GrpcResponse, 0)
tree.Walk(func(s string, v interface{}) bool {
r, _ := v.(*roa)
result := &GrpcResponse{}
@@ -146,8 +146,8 @@ func (c *roaClient) handleGRPC(grpcReq *GrpcRequest) {
results = append(results, result)
return false
})
- go sendMultipleResponses(grpcReq, results)
}
+ go sendMultipleResponses(grpcReq, results)
}
}