Update actions #191

Merged
vtolstov merged 4 commits from atolstikhin/micro-server-grpc:v3 into v3 2024-12-11 01:37:15 +03:00
Showing only changes of commit b588675196 - Show all commits

View File

@ -140,7 +140,7 @@ func (server *rServer) register(rcvr interface{}) error {
return fmt.Errorf("rpc Register: type %s is not exported", sname)
}
if _, present := server.serviceMap[sname]; present {
return fmt.Errorf("rpc: service already defined: " + sname)
return fmt.Errorf("rpc: service already defined: %s", sname)
}
s.name = sname
s.method = make(map[string]*methodType)