Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. func (c *CompactMessageService) readResponse() (r *CompactMessageResponse, e error) {
  2. sent, e := c.proto.ReadBool()
  3. if e != nil {
  4. return
  5. }
  6. if !sent {
  7. errorCode, e := c.proto.ReadI32()
  8. if e != nil {
  9. return
  10. }
  11. e = &CompactMessageException{sent, LineThrift.ErrorCode(errorCode)}
  12. return
  13. }
  14. seqId, e := c.proto.ReadI32()
  15. if e != nil {
  16. return
  17. }
  18. msgId, e := c.proto.ReadI64()
  19. if e != nil {
  20. return
  21. }
  22. createdTime, e := c.proto.ReadI64()
  23. if e != nil {
  24. return
  25. }
  26. return &CompactMessageResponse{sent, seqId, msgId, createdTime}, nil
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement