ing
This commit is contained in:
		
							parent
							
								
									48c0a9b76b
								
							
						
					
					
						commit
						5957c701f9
					
				@ -315,7 +315,7 @@ func (c *client) rpcWriter(stopChan <-chan struct{}, writerDone chan<- error) {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			err = fmt.Errorf("Client: Cannot send request to wire: [%s]", err)
 | 
								err = fmt.Errorf("Client: Cannot send request to wire: [%s]", err)
 | 
				
			||||||
			logging.Logger().Error(err.Error())
 | 
								logging.Logger().Error(err)
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@ -343,8 +343,7 @@ func (c *client) rpcReader(readerDone chan<- error) {
 | 
				
			|||||||
				logging.Logger().Infof("Client: disconnected from server")
 | 
									logging.Logger().Infof("Client: disconnected from server")
 | 
				
			||||||
				return
 | 
									return
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			err = fmt.Errorf("Client: Cannot decode response or notify: [%s]", err)
 | 
								logging.Logger().Errorf("Client: Cannot decode response or notify: [%s]", err)
 | 
				
			||||||
			logging.Logger().Error(err.Error())
 | 
					 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -26,6 +26,10 @@ type ClientNotificationCodec struct {
 | 
				
			|||||||
	codec codec.Codec
 | 
						codec codec.Codec
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (cnc *ClientNotificationCodec) HasResponse() bool {
 | 
				
			||||||
 | 
						return false
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (cnc *ClientNotificationCodec) Method() string {
 | 
					func (cnc *ClientNotificationCodec) Method() string {
 | 
				
			||||||
	return cnc.noti.Method
 | 
						return cnc.noti.Method
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -10,4 +10,6 @@ type RegistryCodec interface {
 | 
				
			|||||||
	// Reads the request filling the RPC method args.
 | 
						// Reads the request filling the RPC method args.
 | 
				
			||||||
	ReadParams(args []interface{}) error
 | 
						ReadParams(args []interface{}) error
 | 
				
			||||||
	Params() ([]string, error)
 | 
						Params() ([]string, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						HasResponse() bool
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -15,7 +15,6 @@ type ServerCodec interface {
 | 
				
			|||||||
type ServerRequestCodec interface {
 | 
					type ServerRequestCodec interface {
 | 
				
			||||||
	RegistryCodec
 | 
						RegistryCodec
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	HasResponse() bool
 | 
					 | 
				
			||||||
	WriteResponse(w io.Writer, reply interface{}) error
 | 
						WriteResponse(w io.Writer, reply interface{}) error
 | 
				
			||||||
	WriteError(w io.Writer, status int, err error) error
 | 
						WriteError(w io.Writer, status int, err error) error
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user