Skip to content
Snippets Groups Projects
Commit 01156e58 authored by Shane Howearth's avatar Shane Howearth Committed by Cecylia Bocovich
Browse files

Remove unnecessary initialisation of last

last was initialised twice (creating a shadow), the second time inside
a case statement. The second initialisation is removed, keeping the use
of last aligned to the isame style as its use other parts of the case
statement.
parent 8bbdb3b5
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,6 @@ func (b *BytesSyncLogger) Log() {
case amount = <-b.OutboundChan:
b.Outbound += amount
b.OutEvents++
last := time.Now()
if time.Since(last) > time.Second*LogTimeInterval {
last = time.Now()
output()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment