fix(config): rename initAccessLogger to initACL

This commit is contained in:
yusing
2026-01-18 11:32:49 +08:00
parent 243a9dc388
commit 1b55573cc4

View File

@@ -118,7 +118,7 @@ func (state *state) Init(data []byte) error {
errs := g.Wait() errs := g.Wait()
// these won't benefit from running on goroutines // these won't benefit from running on goroutines
errs.Add(state.initNotification()) errs.Add(state.initNotification())
errs.Add(state.initAccessLogger()) errs.Add(state.initACL())
errs.Add(state.initEntrypoint()) errs.Add(state.initEntrypoint())
return errs.Error() return errs.Error()
} }
@@ -191,8 +191,8 @@ func (state *state) FlushTmpLog() {
state.tmpLogBuf.Reset() state.tmpLogBuf.Reset()
} }
// this one is connection level access logger, different from entrypoint access logger // initACL initializes the ACL.
func (state *state) initAccessLogger() error { func (state *state) initACL() error {
if !state.ACL.Valid() { if !state.ACL.Valid() {
return nil return nil
} }