fix conf
This commit is contained in:
parent
a128eb8461
commit
0218dfd02e
|
@ -41,10 +41,6 @@ func New(srvKey string, cfg any) {
|
|||
log.Fatalln("ERROR: Service Not Nil", cfp)
|
||||
}
|
||||
|
||||
if !strings.Contains(string(yamlFile), "Port:") {
|
||||
log.Fatalln("ERROR: Port Not Nil", cfp)
|
||||
}
|
||||
|
||||
// 解析YAML
|
||||
err = yaml.Unmarshal(yamlFile, cfg)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue