Add clearStats line to the generated code

This commit is contained in:
Stefan Martinov 2017-11-17 15:22:19 +01:00 committed by GitHub
parent 4fb53cd067
commit 65a84e9cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
go.go
View File

@ -330,6 +330,7 @@ func renderTSRPCServiceProxies(services ServiceList, fullPackageName string, pac
g.ind(-1)
}
g.l("default:")
g.ind(1).l("gotsrpc.ClearStats(r)")
g.ind(1).l("http.Error(w, \"404 - not found \" + r.URL.Path, http.StatusNotFound)")
g.ind(-2).l("}") // close switch
g.ind(-1).l("}") // close ServeHttp