diff --git a/table.go b/table.go index fb0c905..3d92063 100644 --- a/table.go +++ b/table.go @@ -155,7 +155,9 @@ func (rt *RoutingTable) RemoveCtx(ctx context.Context, p peer.ID) { bucket := rt.Buckets[bucketID] if bucket.Remove(p) { + ctx = metrics.BucketContext(ctx, rt.local, bucketID) metrics.RecordPeerRemoved(ctx, bucketID) + metrics.RecordBucketUtilization(ctx, bucket.Len()) rt.PeerRemoved(p) } }