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 ( 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
) )

View File

@ -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()
} }
} }