提交 8951e7e8 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

change getContact wait time from 45s to 300s, to prevent load empty group...

change getContact wait time from 45s to 300s, to prevent load empty group memberlist when theres too many of group and too many of members
上级 3d018739
......@@ -80,12 +80,13 @@ class Bridge {
}
getContact(id) {
const max = 30
const backoff = 100
const max = 35
const backoff = 500
// max = (2*totalTime/backoff) ^ (1/2)
// timeout = 11250 for {max: 15, backoff: 100}
// timeout = 45000 for {max: 30, backoff: 100}
// timeout = 11,250 for {max: 15, backoff: 100}
// timeout = 45,000 for {max: 30, backoff: 100}
// timeout = 30,6250 for {max: 35, backoff: 500}
const timeout = max * (backoff * max) / 2
return retryPromise({ max: max, backoff: backoff }, function (attempt) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册