diff options
author | Carl Baldwin <carl@ecbaldwin.net> | 2019-07-24 09:02:26 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-28 09:06:20 +0900 |
commit | 102a5f79d01bfb0da7cb495b03bd732c39f7090b (patch) | |
tree | abd30c124afcabbfc89c94e16ead0522785121ac /pkg/config | |
parent | 5d7bf46000f8cae950e9e0c4d9a7a0295e88c7ac (diff) |
Move ReadConfigFileOnSighup to gobgpd main
Reloading the config file on SIGHUP is behavior specific to gobgpd.
Attempts to expose it through the config API was awkward and could
make the api more confusing to use. This change moves that
functionality up into the gobgpd main and out of the library.
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/config.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index e6ef0d20..b369760b 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -17,12 +17,6 @@ func ReadConfigFile(configFile, configType string) (*config.BgpConfigSet, error) return config.ReadConfigfile(configFile, configType) } -func ReadConfigFileOnSighup(configFile, configType string) chan *config.BgpConfigSet { - ch := make(chan *config.BgpConfigSet) - go config.ReadConfigfileServe(configFile, configType, ch) - return ch -} - func marshalRouteTargets(l []string) ([]*any.Any, error) { rtList := make([]*any.Any, 0, len(l)) for _, rtString := range l { |