Skip to content
Snippets Groups Projects
Commit 0ea3224c authored by Patrick's avatar Patrick
Browse files

remove useless code in go_restful_server.go

parent 465cd556
No related branches found
No related tags found
No related merge requests found
...@@ -99,8 +99,6 @@ func (grs *GoRestfulServer) Deploy(restMethodConfig *config.RestMethodConfig, ro ...@@ -99,8 +99,6 @@ func (grs *GoRestfulServer) Deploy(restMethodConfig *config.RestMethodConfig, ro
// Delete a http api in go-restful server // Delete a http api in go-restful server
func (grs *GoRestfulServer) UnDeploy(restMethodConfig *config.RestMethodConfig) { func (grs *GoRestfulServer) UnDeploy(restMethodConfig *config.RestMethodConfig) {
ws := new(restful.WebService)
ws.Path(restMethodConfig.Path)
err := grs.ws.RemoveRoute(restMethodConfig.Path, restMethodConfig.MethodType) err := grs.ws.RemoveRoute(restMethodConfig.Path, restMethodConfig.MethodType)
if err != nil { if err != nil {
logger.Warnf("[Go restful] Remove web service error:%v", err) logger.Warnf("[Go restful] Remove web service error:%v", err)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment