Remove unused BytesSyncLogger.IsLogging.

This commit is contained in:
David Fifield 2020-04-23 21:12:45 -06:00
parent d376d7036b
commit 9a4e3e7bd9

View file

@ -31,11 +31,9 @@ type BytesSyncLogger struct {
Inbound int
OutEvents int
InEvents int
IsLogging bool
}
func (b *BytesSyncLogger) Log() {
b.IsLogging = true
var amount int
output := func() {
log.Printf("Traffic Bytes (in|out): %d | %d -- (%d OnMessages, %d Sends)",
@ -71,15 +69,9 @@ func (b *BytesSyncLogger) Log() {
}
func (b *BytesSyncLogger) AddOutbound(amount int) {
if !b.IsLogging {
return
}
b.OutboundChan <- amount
}
func (b *BytesSyncLogger) AddInbound(amount int) {
if !b.IsLogging {
return
}
b.InboundChan <- amount
}