Switch that back to Fatal since we've added the convenience method
This commit is contained in:
		| @@ -169,8 +169,7 @@ func (server *server) register(rcvr interface{}) error { | |||||||
| 	s.rcvr = reflect.ValueOf(rcvr) | 	s.rcvr = reflect.ValueOf(rcvr) | ||||||
| 	sname := reflect.Indirect(s.rcvr).Type().Name() | 	sname := reflect.Indirect(s.rcvr).Type().Name() | ||||||
| 	if sname == "" { | 	if sname == "" { | ||||||
| 		log.Log("rpc: no service name for type", s.typ.String()) | 		log.Fatal("rpc: no service name for type", s.typ.String()) | ||||||
| 		return errors.New("rpc: no service name for type" + s.typ.String()) |  | ||||||
| 	} | 	} | ||||||
| 	if !isExported(sname) { | 	if !isExported(sname) { | ||||||
| 		s := "rpc Register: type " + sname + " is not exported" | 		s := "rpc Register: type " + sname + " is not exported" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user