fixup lint and tests
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
129f02b3bc
commit
fb8e9ccb75
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user