From 5d7bf46000f8cae950e9e0c4d9a7a0295e88c7ac Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Wed, 24 Jul 2019 09:02:22 -0600 Subject: Remove last remants of internal_cfg --- cmd/gobgpd/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go index 5834a406..794d6e10 100644 --- a/cmd/gobgpd/main.go +++ b/cmd/gobgpd/main.go @@ -35,7 +35,6 @@ import ( "google.golang.org/grpc/credentials" api "github.com/osrg/gobgp/api" - internal_cfg "github.com/osrg/gobgp/internal/pkg/config" "github.com/osrg/gobgp/internal/pkg/version" "github.com/osrg/gobgp/pkg/config" "github.com/osrg/gobgp/pkg/server" @@ -169,8 +168,8 @@ func main() { return } - configCh := make(chan *internal_cfg.BgpConfigSet) - go internal_cfg.ReadConfigfileServe(opts.ConfigFile, opts.ConfigType, configCh) + configCh := config.ReadConfigFileOnSighup(opts.ConfigFile, opts.ConfigType) + loop := func() { initialConfig := <-configCh c := config.ApplyInitialConfig(bgpServer, initialConfig, opts.GracefulRestart) -- cgit v1.2.3