mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
defer getExtendedFollows
This commit is contained in:
parent
7eb5aa94d9
commit
37843a24f6
@ -85,7 +85,7 @@ const getExtendedFollows = _.throttle((callback, k, maxDepth = 3, currentDepth =
|
||||
if (isFollowing) {
|
||||
addFollow(callback, followedKey, currentDepth, k);
|
||||
if (currentDepth < maxDepth) {
|
||||
getExtendedFollows(callback, followedKey, maxDepth, currentDepth + 1);
|
||||
_.defer(() => getExtendedFollows(callback, followedKey, maxDepth, currentDepth + 1));
|
||||
}
|
||||
} else {
|
||||
removeFollow(followedKey, currentDepth, k);
|
||||
|
Loading…
Reference in New Issue
Block a user