Remove ThroughputSummary from bytesLogger

This was leftover from when we used to log the total throughput of
connections when they close. It should be removed for privacy reasons as
mentioned in
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40079
This commit is contained in:
Cecylia Bocovich 2023-10-28 13:11:51 -04:00
parent 10fb9afaa7
commit 939062c7dd
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
2 changed files with 0 additions and 18 deletions

View file

@ -438,7 +438,6 @@ func (sf *SnowflakeProxy) makePeerConnectionFromOffer(sdp *webrtc.SessionDescrip
conn.lock.Lock()
defer conn.lock.Unlock()
log.Printf("Data Channel %s-%d close\n", dc.Label(), dc.ID())
log.Println(conn.bytesLogger.ThroughputSummary())
in, out := conn.bytesLogger.GetStat()
conn.eventLogger.OnNewSnowflakeEvent(event.EventOnProxyConnectionOver{
InboundTraffic: in,