Update Support Go version (#143)

This commit is contained in:
ZhangJian He
2022-01-30 09:14:29 +08:00
committed by GitHub
parent bf2b91c535
commit 94ff8e8405
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -37,14 +37,14 @@ func AclConfigLoad(file string) (*ACLConfig, error) {
File: file,
Info: make([]*AuthInfo, 0, 4),
}
err := aclconifg.Prase()
err := aclconifg.Parse()
if err != nil {
return nil, err
}
return aclconifg, err
}
func (c *ACLConfig) Prase() error {
func (c *ACLConfig) Parse() error {
f, err := os.Open(c.File)
defer f.Close()
if err != nil {