mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix golint warnings
This commit is contained in:
parent
17f41e45f8
commit
03d62f0498
4
godns.go
4
godns.go
@ -11,9 +11,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
//Max allowed panic times
|
//PANIC_MAX is the max allowed panic times
|
||||||
PANIC_MAX = 5
|
PANIC_MAX = 5
|
||||||
//Minute
|
//INTERVAL is minute
|
||||||
INTERVAL = 5
|
INTERVAL = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -254,10 +254,10 @@ func (logger *Logger) logPrintf(lv int, format string, args ...interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Close fd
|
//Close fd
|
||||||
func (log *Logger) Close() {
|
func (logger *Logger) Close() {
|
||||||
if log.fd != nil {
|
if logger.fd != nil {
|
||||||
log.Flush()
|
logger.Flush()
|
||||||
log.fd.Close()
|
logger.fd.Close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user