Merge pull request #941 from LeoHChen/cleanup

Cleanup
pull/937/head
Leo Chen 6 years ago committed by GitHub
commit 790a4db106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      api/service/discovery/service.go
  2. 1
      node/node_handler.go

@ -110,7 +110,7 @@ func (s *Service) contactP2pPeers() {
// TODO (leo) use different timer tick for different group, mainly differentiate beacon and regular shards
// beacon ping could be less frequent than regular shard
tick.Stop()
tick = time.NewTicker(1 * time.Minute)
tick = time.NewTicker(5 * time.Minute)
}
if a == p2p.ActionStart || a == p2p.ActionResume || a == p2p.ActionPause {

@ -463,7 +463,6 @@ func (node *Node) AddNewBlock(newBlock *types.Block) {
}
func (node *Node) pingMessageHandler(msgPayload []byte, sender string) int {
utils.GetLogInstance().Info("Got Ping Message")
if sender != "" {
_, ok := node.duplicatedPing.LoadOrStore(sender, true)
if ok {

Loading…
Cancel
Save