diff options
author | Carl Baldwin <carl@ecbaldwin.net> | 2019-07-24 09:02:22 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-28 09:06:20 +0900 |
commit | 5d7bf46000f8cae950e9e0c4d9a7a0295e88c7ac (patch) | |
tree | 477f5ab1b7712e80ce08f45c54ffa9121b5b6d19 /cmd | |
parent | 8900db7551a01d3dba019445b08357ffe0cc3bed (diff) |
Remove last remants of internal_cfg
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgpd/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
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) |