summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorCarl Baldwin <carl@ecbaldwin.net>2019-07-30 16:24:29 -0600
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-28 09:06:20 +0900
commitc089a676d9cce63c7dd9a310b004e28799a7d222 (patch)
treef57da53b776265c5af4e2bb5565dfd7c39aaf47e /cmd
parent4e2d646f89f1fb0667a11fe4c32857d4b1de6e93 (diff)
Rename c to currentConfig to follow naming pattern
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 994e35bc..2bfe9b65 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")
- c := config.ApplyInitialConfig(bgpServer, initialConfig, opts.GracefulRestart)
+ currentConfig := config.ApplyInitialConfig(bgpServer, initialConfig, opts.GracefulRestart)
for sig := range sigCh {
if sig != syscall.SIGHUP {
stopServer(bgpServer, opts.UseSdNotify)
@@ -200,7 +200,7 @@ func main() {
continue
}
- c = config.UpdateConfig(bgpServer, c, newConfig)
+ currentConfig = config.UpdateConfig(bgpServer, currentConfig, newConfig)
}
}