Guest User

Thrift version difference

a guest
Nov 13th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.60 KB | None | 0 0
  1. diff gen-nodejs0.9.1/UserStorage.js gen-nodejs1.0.0-dev/UserStorage.js
  2. 2c2
  3. < // Autogenerated by Thrift Compiler (0.9.1)
  4. ---
  5. > // Autogenerated by Thrift Compiler (1.0.0-dev)
  6. 203c203
  7. <     this.seqid = 0;
  8. ---
  9. >     this._seqid = 0;
  10. 206a207,208
  11. > UserStorageClient.prototype.seqid = function() { return this._seqid; }
  12. > UserStorageClient.prototype.new_seqid = function() { return this._seqid += 1; }
  13. 208,209c210,211
  14. <   this.seqid += 1;
  15. <   this._reqs[this.seqid] = callback;
  16. ---
  17. >   this._seqid = this.new_seqid();
  18. >   this._reqs[this.seqid()] = callback;
  19. 215c217
  20. <   output.writeMessageBegin('store', Thrift.MessageType.CALL, this.seqid);
  21. ---
  22. >   output.writeMessageBegin('store', Thrift.MessageType.CALL, this.seqid());
  23. 239,240c241,242
  24. <   this.seqid += 1;
  25. <   this._reqs[this.seqid] = callback;
  26. ---
  27. >   this._seqid = this.new_seqid();
  28. >   this._reqs[this.seqid()] = callback;
  29. 246c248
  30. <   output.writeMessageBegin('retrieve', Thrift.MessageType.CALL, this.seqid);
  31. ---
  32. >   output.writeMessageBegin('retrieve', Thrift.MessageType.CALL, this.seqid());
  33. diff gen-nodejs0.9.1/user_types.js gen-nodejs1.0.0-dev/user_types.js
  34. 2c2
  35. < // Autogenerated by Thrift Compiler (0.9.1)
  36. ---
  37. > // Autogenerated by Thrift Compiler (1.0.0-dev)
  38. 48c48
  39. <         this.name = input.readString();
  40. ---
  41. >         this.name = input.readBinary();
  42. 55c55
  43. <         this.blurb = input.readString();
  44. ---
  45. >         this.blurb = input.readBinary();
  46. 78c78
  47. <     output.writeString(this.name);
  48. ---
  49. >     output.writeBinary(this.name);
  50. 83c83
  51. <     output.writeString(this.blurb);
  52. ---
  53. >     output.writeBinary(this.blurb);
Advertisement
Add Comment
Please, Sign In to add comment