[#1243] node: Rename notifications init func

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/fix-uri-parsing
Pavel Karpy 2022-03-15 21:09:38 +03:00 committed by Alex Vanin
parent d02720c910
commit a4a29f3442
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ func initApp(c *cfg) {
initProfiler(c)
initMetrics(c)
initControlService(c)
initNotification(c)
initNotifications(c)
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Open())
fatalOnErr(c.cfgObject.cfgLocalStorage.localStorage.Init())

View File

@ -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() {
topic := nodeconfig.Notification(c.appCfg).DefaultTopic()
pubKey := base58.Encode(c.cfgNodeInfo.localInfo.PublicKey())