mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
replace unkeyed fiels with keyed fields when instantiating log struct
This commit is contained in:
@@ -20,7 +20,7 @@ func (l *MockLogs) Stream() chan models.Log {
|
||||
case <-l.done:
|
||||
break
|
||||
default:
|
||||
logCh <- models.Log{time.Now(), mockLog}
|
||||
logCh <- models.Log{Timestamp: time.Now(), Message: mockLog}
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user