less debug of replication
This commit is contained in:
parent
b5c19ccae6
commit
d7650d5e74
@ -170,9 +170,7 @@ module.exports = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const getReplicationTorrents = (nextTimeout = 5000) => {
|
const getReplicationTorrents = (nextTimeout = 5000) => {
|
||||||
console.log('call replication')
|
|
||||||
let gotTorrents = 0
|
let gotTorrents = 0
|
||||||
|
|
||||||
p2p.emit('randomTorrents', null, (torrents) => {
|
p2p.emit('randomTorrents', null, (torrents) => {
|
||||||
if(!torrents || torrents.length == 0)
|
if(!torrents || torrents.length == 0)
|
||||||
return
|
return
|
||||||
@ -180,7 +178,7 @@ module.exports = ({
|
|||||||
gotTorrents += torrents.length
|
gotTorrents += torrents.length
|
||||||
|
|
||||||
torrents.forEach((torrent) => {
|
torrents.forEach((torrent) => {
|
||||||
console.log('replicate remote torrent', torrent)
|
console.log('replicate remote torrent', torrent && torrent.name)
|
||||||
insertTorrentToDB(torrent)
|
insertTorrentToDB(torrent)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user