mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Update latency
This commit is contained in:
parent
0bc8ce03f2
commit
1b39947541
3 changed files with 6 additions and 6 deletions
|
|
@ -72,7 +72,11 @@ func initializeWorker() {
|
|||
}
|
||||
|
||||
l.Close()
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
if port == 9000 {
|
||||
// only turn on metric for the first worker to avoid overlap
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
}
|
||||
|
||||
http.ListenAndServe(":"+strconv.Itoa(port), nil)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue