fix map init
This commit is contained in:
parent
6533e87a36
commit
565c7101d8
@ -55,6 +55,7 @@ type Config struct {
|
|||||||
func (c *Config) Init() error {
|
func (c *Config) Init() error {
|
||||||
err := json.Unmarshal(cfgSample, &c)
|
err := json.Unmarshal(cfgSample, &c)
|
||||||
c.Clients = make(map[int]*ClientConfig)
|
c.Clients = make(map[int]*ClientConfig)
|
||||||
|
c.Stats = make(map[uint8]map[string]*Stat)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "fc3fff6"
|
var githash = "6533e87"
|
||||||
var buildstamp = "2021-12-05_07:41:29"
|
var buildstamp = "2021-12-05_07:48:27"
|
||||||
var commits = "222"
|
var commits = "223"
|
||||||
var version = "fc3fff6-b222 - 2021-12-05_07:41:29"
|
var version = "6533e87-b223 - 2021-12-05_07:48:27"
|
||||||
|
Loading…
Reference in New Issue
Block a user