Add logic service NATS Peer x Cache + Retrieve a lost peer partner.

This commit is contained in:
mr
2026-02-02 12:43:43 +01:00
parent 0ffe98045e
commit 6ca762abbf
3 changed files with 37 additions and 10 deletions

View File

@@ -73,8 +73,6 @@ func InitNode(isNode bool, isIndexer bool) (*Node, error) {
common.ConnectToIndexers(node.Host, 0, 5, node.PeerID) // TODO : make var to change how many indexers are allowed.
logger.Info().Msg("claims my node...")
node.claimInfo(conf.GetConfig().Name, conf.GetConfig().Hostname)
logger.Info().Msg("subscribe to node activity...")
node.SubscribeToNodeActivity(node.PS) // now we subscribe to a long run topic named node-activity, to relay message.
logger.Info().Msg("subscribe to decentralized search flow...")
node.SubscribeToSearch(node.PS)
logger.Info().Msg("run garbage collector...")