less debug of replication

This commit is contained in:
Alexey Kasyanchuk 2018-03-30 22:56:50 +03:00
parent b5c19ccae6
commit d7650d5e74

View File

@ -170,9 +170,7 @@ module.exports = ({
});
const getReplicationTorrents = (nextTimeout = 5000) => {
console.log('call replication')
let gotTorrents = 0
p2p.emit('randomTorrents', null, (torrents) => {
if(!torrents || torrents.length == 0)
return
@ -180,7 +178,7 @@ module.exports = ({
gotTorrents += torrents.length
torrents.forEach((torrent) => {
console.log('replicate remote torrent', torrent)
console.log('replicate remote torrent', torrent && torrent.name)
insertTorrentToDB(torrent)
})
})