mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 06:18:02 +00:00
wait 1 minute before start refreshing
This commit is contained in:
parent
43c84cae6c
commit
61b057175f
@ -756,8 +756,9 @@ void node_impl::load_storage(entry const* e) {
|
||||
int ret = lazy_bdecode(item.p.data(), item.p.data() + item.p.size(), p, err, &pos, 10, 500);
|
||||
processEntryForHashtags(p);
|
||||
|
||||
// wait 1 minute (to load torrents, etc.)
|
||||
// randomize refresh time
|
||||
item.next_refresh_time = now + minutes(item.confirmed ? 60 : 1) * getRandom();
|
||||
item.next_refresh_time = now + minutes(1) + minutes(item.confirmed ? 60 : 1) * getRandom();
|
||||
|
||||
to_add.push_back(item);
|
||||
#ifdef ENABLE_DHT_ITEM_EXPIRE
|
||||
|
Loading…
Reference in New Issue
Block a user