fix: fix Nginx parser start without gourutine
Some checks failed
build / build (push) Failing after 2m54s

This commit is contained in:
d3m0k1d
2026-01-21 21:40:57 +03:00
parent 0fe34d1537
commit de000ab5b6
2 changed files with 29 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ import (
)
func Write(db *DB, resultCh <-chan *LogEntry) {
db.logger.Info("Starting log writer")
const batchSize = 100
const flushInterval = 1 * time.Second