mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 23:19:47 +00:00
Remove periodic progress logging in pumpToMux
This commit is contained in:
@@ -523,7 +523,6 @@ func (s *Server) pumpToMux(sid uint16, conn net.Conn) {
|
||||
|
||||
buf := make([]byte, 16384)
|
||||
totalSent := uint64(0)
|
||||
lastLog := time.Now()
|
||||
|
||||
for {
|
||||
n, err := conn.Read(buf)
|
||||
@@ -543,10 +542,6 @@ func (s *Server) pumpToMux(sid uint16, conn net.Conn) {
|
||||
}
|
||||
|
||||
totalSent += uint64(n) //nolint:gosec
|
||||
if time.Since(lastLog) > 5*time.Second {
|
||||
logger.Infof("sid=%d sent=%dMB", sid, totalSent/(1024*1024))
|
||||
lastLog = time.Now()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user