Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
galt-tr committed Jan 23, 2024
1 parent a17f4d1 commit c7eae54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Server struct {
topicNames []string
topics map[string]*pubsub.Topic
dht *dht.IpfsDHT
peers []peer.AddrInfo
//peers []peer.AddrInfo
}

// NewServer will create a new server
Expand Down Expand Up @@ -187,6 +187,7 @@ func (s *Server) Stop(_ context.Context) error {
return nil
}

// RunPeerDiscovery starts a 5 min cron job to resync peers and update routable peers
func (s *Server) RunPeerDiscovery(ctx context.Context, routingDiscovery *drouting.RoutingDiscovery) chan bool {
ticker := time.NewTicker(5 * time.Minute)
quit := make(chan bool, 1)
Expand Down

0 comments on commit c7eae54

Please sign in to comment.