1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix golint warnings

This commit is contained in:
Timothy 2017-08-17 11:11:00 +08:00
parent 17f41e45f8
commit 03d62f0498
2 changed files with 6 additions and 6 deletions

View File

@ -11,9 +11,9 @@ import (
)
const (
//Max allowed panic times
//PANIC_MAX is the max allowed panic times
PANIC_MAX = 5
//Minute
//INTERVAL is minute
INTERVAL = 5
)

View File

@ -254,10 +254,10 @@ func (logger *Logger) logPrintf(lv int, format string, args ...interface{}) {
}
//Close fd
func (log *Logger) Close() {
if log.fd != nil {
log.Flush()
log.fd.Close()
func (logger *Logger) Close() {
if logger.fd != nil {
logger.Flush()
logger.fd.Close()
}
}