enable batch upload, yay!
authorDan Mills <thunder@mozilla.com>
Thu, 20 Nov 2008 10:38:53 +0900
changeset 45046 e86312aa6c67cb6aa465215ddc6a252b0b37b9b2
parent 45045 cdeaa180d10eb0ddce87b704a7377a2b61863d46
child 45047 dafa68a9b09782b2b77a57378fc1579fdebcafa1
push idunknown
push userunknown
push dateunknown
enable batch upload, yay!
services/sync/modules/engines.js
--- a/services/sync/modules/engines.js
+++ b/services/sync/modules/engines.js
@@ -389,30 +389,22 @@ NewEngine.prototype = {
     let inc;
     while ((inc = this.incoming.pop())) {
       yield this._store.applyIncoming(self.cb, inc);
       if (inc.modified > this.lastSync)
         this.lastSync = inc.modified;
     }
 
     // upload new/changed items from our outgoing queue
-    /* re-enable this block after POST to server is working
     let up = new Collection(this.engineURL);
     let out;
     while ((out = this.outgoing.pop())) {
       yield up.pushRecord(self.cb, out);
     }
     yield up.post(self.cb);
-     */
-
-    // remove below block once POST is working
-    let out;
-    while ((out = this.outgoing.pop())) {
-      yield out.put(self.cb);
-    }
 
     // FIXME: hack to get the last modified timestamp.  race condition alert!
     yield newitems.get(self.cb);
     newitems.iter.reset();
     while ((item = newitems.iter.next())) {
       if (item.modified > this.lastSync)
         this.lastSync = item.modified;
     }