Implement integration with statsd

This commit is contained in:
9seconds
2018-07-13 11:38:25 +03:00
parent c64f97082c
commit 5ddf3d77d1
3 changed files with 98 additions and 5 deletions
+3 -1
View File
@@ -158,7 +158,9 @@ func main() {
zap.S().Infow("Use direct connection to Telegram")
}
go stats.Start(conf)
if err := stats.Start(conf); err != nil {
panic(err)
}
server := proxy.NewProxy(conf)
if err := server.Serve(); err != nil {