*(dnsforward): fix reading in-memory entries

This commit is contained in:
Andrey Meshkov
2020-02-21 16:50:20 +03:00
parent 9d8a95f836
commit df427b6822
3 changed files with 11 additions and 7 deletions

View File

@@ -9,9 +9,6 @@ import (
"github.com/AdguardTeam/golibs/log"
)
// TODO: Check this when we append a new line -- we don't want to have a line longer than this
const maxEntrySize = 1024
// flushLogBuffer flushes the current buffer to file and resets the current buffer
func (l *queryLog) flushLogBuffer(fullFlush bool) error {
l.fileFlushLock.Lock()