Remote.put doesn't require the data arg anymore

This commit is contained in:
Dan Mills 2008-07-29 17:35:10 -07:00
Родитель 9ad12df38a
Коммит 34c0adde08
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -512,7 +512,7 @@ FileEngine.prototype = {
yield this._keys.initialize(self.cb, this.engineId);
this._file.data = {};
yield this._merge.async(this, self.cb);
yield this._file.put(self.cb, this._file.data);
yield this._file.put(self.cb);
},
// NOTE: Assumes this._file has latest server data
@ -541,7 +541,7 @@ FileEngine.prototype = {
yield this._keys.getKeyAndIV(self.cb, this.engineId);
yield this._file.get(self.cb);
yield this._merge.async(this, self.cb);
yield this._file.put(self.cb, this._file.data);
yield this._file.put(self.cb);
} catch (e if e.status == 404) {
this._log.info("Initial upload to server");

Просмотреть файл

@ -349,6 +349,7 @@ WeaveSvc.prototype = {
this._log.info("Server version too low. Wiping server data.");
yield this._serverWipe.async(this, self.cb);
yield this._uploadVersion.async(this, self.cb);
yield ClientData.upload
} else if (ret.responseText > STORAGE_FORMAT_VERSION) {
// XXX should we do something here?