fixup lint and tests
Some checks failed
build / test (push) Failing after 28s
build / lint (push) Failing after 14m27s
codeql / analyze (go) (push) Failing after 14m22s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-12-11 01:34:24 +03:00
parent 129f02b3bc
commit fb8e9ccb75

View File

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