function handleHMACMismatch(item, mayRetry) {
    this._log.debug("Handling HMAC mismatch for " + item.id);

    let base = SyncEngine.prototype.handleHMACMismatch.call(this, item, mayRetry);
    if (base != SyncEngine.kRecoveryStrategy.error)
      return base;

    // It's a bad client record. Save it to be deleted at the end of the sync.
    this._log.debug("Bad client record detected. Scheduling for deletion.");
    this._deleteId(item.id);

    // Neither try again nor error; we're going to delete it.
    return SyncEngine.kRecoveryStrategy.ignore;
  }
// Override the default behavior to delete bad records from the server.
Override the default behavior to delete bad records from the server.
Override the default behavior to delete bad records from the server .
function handleHMACMismatch(item, mayRetry) {
    this._log.debug("Handling HMAC mismatch for " + item.id);
    let base = SyncEngine.prototype.handleHMACMismatch.call(this, item, mayRetry);
    if (base != SyncEngine.kRecoveryStrategy.error)
      return base;
    this._log.debug("Bad client record detected. Scheduling for deletion.");
    this._deleteId(item.id);
    return SyncEngine.kRecoveryStrategy.ignore;
  }
function handleHMACMismatch ( item , mayRetry ) { this . _log . debug ( "Handling HMAC mismatch for " + item . id ) ; let base = SyncEngine . prototype . handleHMACMismatch . call ( this , item , mayRetry ) ; if ( base != SyncEngine . kRecoveryStrategy . error ) return base ; this . _log . debug ( "Bad client record detected. Scheduling for deletion." ) ; this . _deleteId ( item . id ) ; return SyncEngine . kRecoveryStrategy . ignore ; }
Override the default behavior to delete bad records from the server.
Override the default behavior to delete bad records from the server .
// It's a bad client record. Save it to be deleted at the end of the sync. // Neither try again nor error; we're going to delete it.