summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorCarl Baldwin <carl@ecbaldwin.net>2019-08-16 09:17:36 -0600
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-28 09:06:20 +0900
commit8d9d5c91e99ef4a8582ff2d9bc16443dff9de78d (patch)
treef2ac0e91a2da83c336c83287c08589627a74e50d /cmd
parentc089a676d9cce63c7dd9a310b004e28799a7d222 (diff)
Pass context through configuration code
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgpd/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go
index 2bfe9b65..597a7df9 100644
--- a/cmd/gobgpd/main.go
+++ b/cmd/gobgpd/main.go
@@ -181,7 +181,7 @@ func main() {
"Topic": "Config",
}).Info("Finished reading the config file")
- currentConfig := config.ApplyInitialConfig(bgpServer, initialConfig, opts.GracefulRestart)
+ currentConfig := config.ApplyInitialConfig(context.Background(), bgpServer, initialConfig, opts.GracefulRestart)
for sig := range sigCh {
if sig != syscall.SIGHUP {
stopServer(bgpServer, opts.UseSdNotify)
@@ -200,7 +200,7 @@ func main() {
continue
}
- currentConfig = config.UpdateConfig(bgpServer, currentConfig, newConfig)
+ currentConfig = config.UpdateConfig(context.Background(), bgpServer, currentConfig, newConfig)
}
}