Commit 3d68f5bf authored by Steven Allen's avatar Steven Allen

metrics: fix memory leak

fixes #389

Credit goes to @sidenaio for finding this.
parent a12e621d
......@@ -114,7 +114,7 @@ func (dht *IpfsDHT) handleNewMessage(s network.Stream) bool {
timer.Reset(dhtStreamIdleTimeout)
startTime := time.Now()
ctx, _ = tag.New(
ctx, _ := tag.New(
ctx,
tag.Upsert(metrics.KeyMessageType, req.GetType().String()),
)
......
......@@ -27,3 +27,5 @@ require (
go.opencensus.io v0.21.0
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522
)
go 1.12
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment