diff --git a/common/constant/env.go b/common/constant/env.go index c899634409b1a941f18642046490a322786bdd2b..77295759908b7c22885a1413dce2734180e76a48 100644 --- a/common/constant/env.go +++ b/common/constant/env.go @@ -18,11 +18,8 @@ package constant const ( - // CONF_CONSUMER_FILE_PATH ... CONF_CONSUMER_FILE_PATH = "CONF_CONSUMER_FILE_PATH" - // CONF_PROVIDER_FILE_PATH ... CONF_PROVIDER_FILE_PATH = "CONF_PROVIDER_FILE_PATH" - // APP_LOG_CONF_FILE ... - APP_LOG_CONF_FILE = "APP_LOG_CONF_FILE" + APP_LOG_CONF_FILE = "APP_LOG_CONF_FILE" CONF_ROUTER_FILE_PATH = "CONF_ROUTER_FILE_PATH" -) +) \ No newline at end of file diff --git a/common/url.go b/common/url.go index 78e766b87902313a6ed2a60eda9919d88fd2af30..ff3ca4952e1cfdb35d33d4faf6ca9e75adfefde1 100644 --- a/common/url.go +++ b/common/url.go @@ -45,22 +45,16 @@ import ( // dubbo role type ///////////////////////////////// -// role constant const ( - // CONSUMER ... CONSUMER = iota - // CONFIGURATOR ... CONFIGURATOR - // ROUTER ... ROUTER - // PROVIDER ... PROVIDER ) var ( // DubboNodes ... DubboNodes = [...]string{"consumers", "configurators", "routers", "providers"} - // DubboRole ... DubboRole = [...]string{"consumer", "", "routers", "provider"} ) @@ -484,7 +478,7 @@ func (c URL) GetRawParam(key string) string { } } -// GetParamBool ... +// GetParamBool func (c URL) GetParamBool(s string, d bool) bool { var r bool