Skip to content
Snippets Groups Projects
Unverified Commit 2b8aad0a authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #891 from Patrick0308/develop

Remove useless code in go_restful_server.go
parents 2c1dc132 d051329c
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