fix: metric env not affect (#2450)

fix metric env not affect
This commit is contained in:
Athurg Gooth
2023-10-27 23:26:23 +08:00
committed by GitHub
parent 20d3abb99a
commit 4f1bb55e55
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ type Profile struct {
Driver string `json:"-"`
// Version is the current version of server
Version string `json:"version"`
// Metric indicate the metric collection is enabled or not
Metric bool `json:"-"`
}
func (p *Profile) IsDev() bool {