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) accessLogEntries := make(chan LogEntry, 10)
go func() { go func() {
for { for {
entry := <- accessLogEntries entry := <-accessLogEntries
writeLogEntry(accessLogFile, entry) writeLogEntry(accessLogFile, entry)
} }
}() }()
errorLogEntries := make(chan string, 10) errorLogEntries := make(chan string, 10)
go func() { go func() {
for { for {
message := <- errorLogEntries message := <-errorLogEntries
errorLogFile.WriteString( time.Now().Format(time.RFC3339) + " " + message + "\n") errorLogFile.WriteString(time.Now().Format(time.RFC3339) + " " + message + "\n")
} }
}() }()