server: support initial seeding (aka superseeding)

https://www.bittorrent.org/beps/bep_0016.html
This commit is contained in:
Jesse Chan
2020-12-26 11:50:16 +08:00
parent fe9cd922eb
commit 26c9987355
11 changed files with 132 additions and 5 deletions
+1
View File
@@ -257,6 +257,7 @@ class FeedService extends BaseService {
isBasePath: false,
isCompleted: false,
isSequential: false,
isInitialSeeding: false,
})
.then(() => {
this.db.update({_id: feedID}, {$inc: {count: 1}}, {upsert: true});