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) }