mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 02:09:01 +02:00
fix(config): rename initAccessLogger to initACL
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user