Skip to content

Commit 71086f9

Browse files
committed
fix: 为消除 golint 错误,变成指针,出错,修改成值形式。
原因,对指针取地址,是值
1 parent d298472 commit 71086f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmicro/server/rpcserver/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func WithOptions(opts ...grpc.ServerOption) ServerOption {
127127

128128
// 完成ip和端口的提取
129129
func (s *Server) listenAndEndpoint() error {
130-
if &s.lis == nil {
130+
if s.lis == nil {
131131
lis, err := net.Listen("tcp", s.address)
132132
if err != nil {
133133
return err

0 commit comments

Comments
 (0)