Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func (c *CompactMessageService) readResponse() (r *CompactMessageResponse, e error) {
- sent, e := c.proto.ReadBool()
- if e != nil {
- return
- }
- if !sent {
- errorCode, e := c.proto.ReadI32()
- if e != nil {
- return
- }
- e = &CompactMessageException{sent, LineThrift.ErrorCode(errorCode)}
- return
- }
- seqId, e := c.proto.ReadI32()
- if e != nil {
- return
- }
- msgId, e := c.proto.ReadI64()
- if e != nil {
- return
- }
- createdTime, e := c.proto.ReadI64()
- if e != nil {
- return
- }
- return &CompactMessageResponse{sent, seqId, msgId, createdTime}, nil
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement