mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-04-13 17:51:48 +08:00
no weibo wechat
This commit is contained in:
@@ -113,8 +113,6 @@ TODO或ISSUE里如果有你擅长的领域,或者你有特别好的主意,
|
||||
## 技术交流
|
||||
QQ群:16947733
|
||||
邮箱:openp2p.cn@gmail.com 271357901@qq.com
|
||||
第一时间获得最新版本消息,以及一些最新IT业界动态
|
||||
微信公众号:openp2p
|
||||
微博:https://weibo.com/openp2p
|
||||
|
||||
## 免责声明
|
||||
本项目开源供大家学习和免费使用,禁止用于非法用途,任何不当使用本项目或意外造成的损失,本项目及相关人员不会承担任何责任。
|
||||
|
||||
@@ -138,10 +138,6 @@ QQ Group: 16947733
|
||||
|
||||
Email: openp2p.cn@gmail.com tenderiron@139.com
|
||||
|
||||
Get the latest version news, and some of the latest IT industry trends
|
||||
|
||||
WeChat public account: openp2p
|
||||
|
||||
## Disclaimer
|
||||
This project is open source for everyone to learn and use for free. It is forbidden to be used for illegal purposes. Any loss caused by improper use of this project or accident, this project and related personnel will not bear any responsibility.
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math"
|
||||
"math/rand"
|
||||
"net/url"
|
||||
"os"
|
||||
@@ -105,10 +104,6 @@ func (pn *P2PNetwork) autoReconnectApp() {
|
||||
thisRound := make([]AppConfig, 0)
|
||||
for i := 0; i < len(retryApps); i++ {
|
||||
// reset retryNum when running 15min continuously
|
||||
delay := math.Exp(float64(retryApps[i].retryNum+1)/2) * 5
|
||||
if delay > 1800 { // max delay 30min
|
||||
delay = 1800
|
||||
}
|
||||
if retryApps[i].retryTime.Add(time.Minute * 15).Before(time.Now()) {
|
||||
retryApps[i].retryNum = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user