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
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:
commit
b588675196
@ -140,7 +140,7 @@ func (server *rServer) register(rcvr interface{}) error {
|
|||||||
return fmt.Errorf("rpc Register: type %s is not exported", sname)
|
return fmt.Errorf("rpc Register: type %s is not exported", sname)
|
||||||
}
|
}
|
||||||
if _, present := server.serviceMap[sname]; present {
|
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.name = sname
|
||||||
s.method = make(map[string]*methodType)
|
s.method = make(map[string]*methodType)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user