Increase ping frequency at first

pull/1936/head
Rongjian Lan 5 years ago
parent 3182bc8100
commit 8c7dca4cc6
  1. 3
      api/service/discovery/service.go

@ -74,7 +74,7 @@ func (s *Service) Run() {
} }
func (s *Service) contactP2pPeers() { func (s *Service) contactP2pPeers() {
pingInterval := 5 pingInterval := 1
nodeConfig := nodeconfig.GetShardConfig(s.config.ShardID) nodeConfig := nodeconfig.GetShardConfig(s.config.ShardID)
// Don't send ping message for Explorer Node // Don't send ping message for Explorer Node
@ -104,6 +104,7 @@ func (s *Service) contactP2pPeers() {
return return
} }
utils.Logger().Debug().Msg("[DISCOVERY] Sending Ping Message")
s.sentPingMessage(s.config.ShardGroupID, msgBuf) s.sentPingMessage(s.config.ShardGroupID, msgBuf)
// the longest sleep is 3600 seconds // the longest sleep is 3600 seconds

Loading…
Cancel
Save