From f3709ed4616941721446391efe5fcd05433ed23d Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 31 Oct 2017 19:00:51 +0900 Subject: [PATCH] ing --- server/server_handlers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server_handlers.go b/server/server_handlers.go index a9441c7..a1df42f 100644 --- a/server/server_handlers.go +++ b/server/server_handlers.go @@ -10,7 +10,7 @@ import ( ) type ServerHandlers struct { - Registry rpc.Registry + RPCRegistry rpc.Registry codecs map[string]protocol.ServerCodec } @@ -56,8 +56,8 @@ func (sh *ServerHandlers) OnPostWriteError(w io.Writer, err error) { } func (sh *ServerHandlers) Validate() { - if nil == sh.Registry { - panic("Registry(RPCRegistry) must be specified.") + if nil == sh.RPCRegistry { + panic("RPCRegistry must be specified.") } } @@ -77,5 +77,5 @@ func (sh *ServerHandlers) getCodec(contentType string) (protocol.ServerCodec, er } func (sh *ServerHandlers) invoke(codec protocol.RegistryCodec) (result interface{}, err error) { - return sh.Registry.Invoke(codec) + return sh.RPCRegistry.Invoke(codec) }