From fb8e9ccb75e6509f6d8b6c81ac883e6e9ed19f98 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 11 Dec 2024 01:34:24 +0300 Subject: [PATCH] fixup lint and tests Signed-off-by: Vasiliy Tolstov --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1df1e1a..c1e064c 100644 --- a/server.go +++ b/server.go @@ -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)