diff --git a/protocol/json/client_notification.go b/protocol/json/client_notification.go index d9628e2..f2684bf 100644 --- a/protocol/json/client_notification.go +++ b/protocol/json/client_notification.go @@ -23,10 +23,6 @@ type ClientNotificationCodec struct { noti *clientNotification } -func (cnc *ClientNotificationCodec) HasResponse() bool { - return false -} - func (cnc *ClientNotificationCodec) Method() string { return cnc.noti.Method } diff --git a/protocol/registry_codec.go b/protocol/registry_codec.go index 88adc7e..b0ecc68 100644 --- a/protocol/registry_codec.go +++ b/protocol/registry_codec.go @@ -10,6 +10,4 @@ type RegistryCodec interface { // Reads the request filling the RPC method args. ReadParams(args []interface{}) error Params() ([]string, error) - - HasResponse() bool } diff --git a/protocol/server_codec.go b/protocol/server_codec.go index e175973..00da440 100644 --- a/protocol/server_codec.go +++ b/protocol/server_codec.go @@ -11,5 +11,6 @@ type ServerCodec interface { type ServerRequestCodec interface { RegistryCodec + HasResponse() bool NewResponse(reply interface{}, err error) ([]byte, error) }