Merge branch 'v3' into v3
Some checks failed
automerge / automerge (pull_request) Failing after 14s
autoapprove / autoapprove (pull_request) Failing after 33s
lint / lint (pull_request) Successful in 1m20s
test / test (pull_request) Successful in 2m10s
dependabot-automerge / automerge (pull_request) Failing after 13m51s

This commit is contained in:
Василий Толстов 2024-12-11 01:34:51 +03:00
commit b588675196

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)