mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 15:45:07 +00:00
Fix initialization
This commit is contained in:
parent
fa639ffc74
commit
03cf452b8f
@ -214,8 +214,7 @@ func (s *Service) initProtocol(address, encKey, password string) error {
|
||||
PublisherSignalHandler{}.NewMessages(signalMessages)
|
||||
}
|
||||
s.Publisher.Init(persistence.DB, protocolService, onNewMessagesHandler)
|
||||
|
||||
return nil
|
||||
return s.Publisher.Start(s.online, true)
|
||||
}
|
||||
|
||||
func (s *Service) processReceivedMessages(messages []*whisper.Message) ([]dedup.DeduplicateMessage, error) {
|
||||
@ -295,9 +294,6 @@ func (s *Service) Start(server *p2p.Server) error {
|
||||
s.mailMonitor.Start()
|
||||
s.nodeID = server.PrivateKey
|
||||
s.server = server
|
||||
if s.config.PFSEnabled {
|
||||
return s.Publisher.Start(s.online, true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user