Skip to content

Commit

Permalink
ticker is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
muraty authored and cenkalti committed Dec 16, 2019
1 parent 8107de3 commit 99afff8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions torrent/session_metrics.go
@@ -1,9 +1,6 @@
package torrent

import (
"net"
"os"
"strings"
"time"

"github.com/rcrowley/go-metrics"
Expand Down Expand Up @@ -95,9 +92,6 @@ func (s *Session) initMetrics() error {
}

func (m *sessionMetrics) Close() {
if m.ticker != nil {
m.ticker.Stop()
}
m.WritesPerSecond.Stop()
m.SpeedDownload.Stop()
m.SpeedUpload.Stop()
Expand Down

0 comments on commit 99afff8

Please sign in to comment.