mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
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.
This commit is contained in:
parent
8bbdb3b51a
commit
01156e58eb
1 changed files with 0 additions and 1 deletions
|
@ -54,7 +54,6 @@ func (b *BytesSyncLogger) Log() {
|
||||||
case amount = <-b.OutboundChan:
|
case amount = <-b.OutboundChan:
|
||||||
b.Outbound += amount
|
b.Outbound += amount
|
||||||
b.OutEvents++
|
b.OutEvents++
|
||||||
last := time.Now()
|
|
||||||
if time.Since(last) > time.Second*LogTimeInterval {
|
if time.Since(last) > time.Second*LogTimeInterval {
|
||||||
last = time.Now()
|
last = time.Now()
|
||||||
output()
|
output()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue