From 1edc7cb5828e1811d946bf7094e8d49d9a76d746 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 5 Apr 2018 13:54:34 +0900 Subject: [PATCH] ing --- protocol/json/client_notification.go | 4 ---- protocol/registry_codec.go | 2 -- protocol/server_codec.go | 1 + 3 files changed, 1 insertion(+), 6 deletions(-) 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) }