get cpu stats from cgroup, remove env (#2636)

* get cpu stats from cgroup, remove env

* undo rand seed removal

* tests
This commit is contained in:
Mathew Kamkar
2024-04-08 21:15:17 -07:00
committed by GitHub
parent 196fed605e
commit 10c8582a6b
11 changed files with 61 additions and 52 deletions
-5
View File
@@ -61,7 +61,6 @@ type Config struct {
Port uint32 `yaml:"port,omitempty"`
BindAddresses []string `yaml:"bind_addresses,omitempty"`
PrometheusPort uint32 `yaml:"prometheus_port,omitempty"`
Environment string `yaml:"environment,omitempty"`
RTC RTCConfig `yaml:"rtc,omitempty"`
Redis redisLiveKit.RedisConfig `yaml:"redis,omitempty"`
Audio AudioConfig `yaml:"audio,omitempty"`
@@ -574,10 +573,6 @@ func NewConfig(confString string, strictMode bool, c *cli.Context, baseFlags []c
conf.Logging.ComponentLevels["pion"] = conf.Logging.PionLevel
}
if conf.Development {
conf.Environment = "dev"
}
return &conf, nil
}