mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
Add clearStats line to the generated code
This commit is contained in:
parent
4fb53cd067
commit
65a84e9cb9
1
go.go
1
go.go
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user