src/sync/watcher.js
Function watch
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
watch(origin, destination, opts) {
var id = this.calculate_id(origin, destination);
let promise = defer((resolve, reject) => {
log.info('[sync] Adding watcher, from: %s, to: %s, opts: %j', origin, destination, opts, {});
Function promise
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let promise = defer((resolve, reject) => {
log.info('[sync] Adding watcher, from: %s, to: %s, opts: %j', origin, destination, opts, {});
if (this.workers[id]) {
this.workers[id].count++;
this.publish('init', { status: 'exists' });