From f80f744e3121d301c5a1e5253ace2064fdf5a980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=9B=99=E8=BE=89?= Date: Thu, 29 Apr 2021 17:15:44 +0800 Subject: [PATCH] fix: error WithPort func --- common/constant/server_config_options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/constant/server_config_options.go b/common/constant/server_config_options.go index ed8325ae..6c927cb1 100644 --- a/common/constant/server_config_options.go +++ b/common/constant/server_config_options.go @@ -56,8 +56,8 @@ func WithIpAddr(ipAddr string) ServerOption { } //WithPort set port for server -func WithPort(port string) ServerOption { +func WithPort(port uint64) ServerOption { return func(config *ServerConfig) { - config.IpAddr = port + config.Port = port } }