1
0
Fork 0

gofmt fixes.

This commit is contained in:
Solderpunk 2020-06-30 19:13:02 +02:00
parent 44af303de6
commit 990b7071d0
3 changed files with 11 additions and 11 deletions

View file

@ -60,15 +60,15 @@ func main() {
accessLogEntries := make(chan LogEntry, 10)
go func() {
for {
entry := <- accessLogEntries
entry := <-accessLogEntries
writeLogEntry(accessLogFile, entry)
}
}()
errorLogEntries := make(chan string, 10)
go func() {
for {
message := <- errorLogEntries
errorLogFile.WriteString( time.Now().Format(time.RFC3339) + " " + message + "\n")
message := <-errorLogEntries
errorLogFile.WriteString(time.Now().Format(time.RFC3339) + " " + message + "\n")
}
}()