forked from TrueCloudLab/frostfs-node
[#1243] node: Rename notifications init func
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
d02720c910
commit
a4a29f3442
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ func initApp(c *cfg) {
|
||||||
initProfiler(c)
|
initProfiler(c)
|
||||||
initMetrics(c)
|
initMetrics(c)
|
||||||
initControlService(c)
|
initControlService(c)
|
||||||
initNotification(c)
|
initNotifications(c)
|
||||||
|
|
||||||
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Open())
|
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Open())
|
||||||
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Init())
|
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Init())
|
||||||
|
|
|
@ -106,7 +106,7 @@ func (n notificationWriter) Notify(topic string, address *addressSDK.Address) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func initNotification(c *cfg) {
|
func initNotifications(c *cfg) {
|
||||||
if nodeconfig.Notification(c.appCfg).Enabled() {
|
if nodeconfig.Notification(c.appCfg).Enabled() {
|
||||||
topic := nodeconfig.Notification(c.appCfg).DefaultTopic()
|
topic := nodeconfig.Notification(c.appCfg).DefaultTopic()
|
||||||
pubKey := base58.Encode(c.cfgNodeInfo.localInfo.PublicKey())
|
pubKey := base58.Encode(c.cfgNodeInfo.localInfo.PublicKey())
|
||||||
|
|
Loading…
Reference in a new issue