no weibo wechat

This commit is contained in:
hhd
2021-11-25 18:08:05 +08:00
parent 1ef0f919d9
commit 8551264a15
3 changed files with 1 additions and 12 deletions
+1 -3
View File
@@ -113,8 +113,6 @@ TODO或ISSUE里如果有你擅长的领域,或者你有特别好的主意,
## 技术交流
QQ群:16947733
邮箱:openp2p.cn@gmail.com 271357901@qq.com
第一时间获得最新版本消息,以及一些最新IT业界动态
微信公众号:openp2p
微博:https://weibo.com/openp2p
## 免责声明
本项目开源供大家学习和免费使用,禁止用于非法用途,任何不当使用本项目或意外造成的损失,本项目及相关人员不会承担任何责任。
-4
View File
@@ -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.
-5
View File
@@ -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
}