From 18b87c329c12b5a25daddc1ae2b197e71e3de5e2 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 28 Oct 2018 20:52:02 +0900 Subject: server: make NewRoaListFromTableStructList() unexported Signed-off-by: FUJITA Tomonori --- pkg/server/grpc_server.go | 8 ++++---- pkg/server/server.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go index eb17c69f..8b70c36e 100644 --- a/pkg/server/grpc_server.go +++ b/pkg/server/grpc_server.go @@ -110,9 +110,9 @@ func newValidationFromTableStruct(v *table.Validation) *api.RPKIValidation { } return &api.RPKIValidation{ Reason: api.RPKIValidation_Reason(v.Reason.ToInt()), - Matched: NewRoaListFromTableStructList(v.Matched), - UnmatchedAs: NewRoaListFromTableStructList(v.UnmatchedAs), - UnmatchedLength: NewRoaListFromTableStructList(v.UnmatchedLength), + Matched: newRoaListFromTableStructList(v.Matched), + UnmatchedAs: newRoaListFromTableStructList(v.UnmatchedAs), + UnmatchedLength: newRoaListFromTableStructList(v.UnmatchedLength), } } @@ -1668,7 +1668,7 @@ func newPolicyFromApiStruct(a *api.Policy) (*table.Policy, error) { }, nil } -func NewRoaListFromTableStructList(origin []*table.ROA) []*api.Roa { +func newRoaListFromTableStructList(origin []*table.ROA) []*api.Roa { l := make([]*api.Roa, 0) for _, r := range origin { host, portStr, _ := net.SplitHostPort(r.Src) diff --git a/pkg/server/server.go b/pkg/server/server.go index d250b099..23391c19 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -3302,7 +3302,7 @@ func (s *BgpServer) ListRpkiTable(ctx context.Context, r *api.ListRpkiTableReque } roas, err = s.roaManager.GetRoa(family) if err == nil { - l = append(l, NewRoaListFromTableStructList(roas)...) + l = append(l, newRoaListFromTableStructList(roas)...) } return nil }, false) -- cgit v1.2.3