From 1b9bab68ed3d2473541a1f487eee10291bc3c9f2 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 14 Apr 2022 08:05:43 +0100 Subject: [PATCH] chore: update deps (#1190) --- package.json | 4 ++-- src/metrics/stats.ts | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 58efc772..ee96cd98 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "@achingbrain/nat-port-mapper": "^1.0.0", "@libp2p/connection": "^1.1.4", "@libp2p/crypto": "^0.22.9", - "@libp2p/interfaces": "^1.3.17", + "@libp2p/interfaces": "^1.3.21", "@libp2p/logger": "^1.1.3", "@libp2p/multistream-select": "^1.0.3", "@libp2p/peer-id": "^1.1.8", @@ -164,7 +164,7 @@ "@libp2p/floodsub": "^1.0.2", "@libp2p/interface-compliance-tests": "^1.1.20", "@libp2p/interop": "^1.0.3", - "@libp2p/kad-dht": "^1.0.3", + "@libp2p/kad-dht": "^1.0.5", "@libp2p/mdns": "^1.0.3", "@libp2p/mplex": "^1.0.1", "@libp2p/pubsub": "^1.2.14", diff --git a/src/metrics/stats.ts b/src/metrics/stats.ts index 56b3d4ca..9806ab61 100644 --- a/src/metrics/stats.ts +++ b/src/metrics/stats.ts @@ -2,7 +2,7 @@ import { CustomEvent, EventEmitter } from '@libp2p/interfaces' import { createMovingAverage } from './moving-average.js' // @ts-expect-error no types import retimer from 'retimer' -import type { MovingAverages, Stats } from '@libp2p/interfaces/metrics' +import type { MovingAverages, Stats, TransferStats } from '@libp2p/interfaces/metrics' export interface StatsEvents { 'update': CustomEvent @@ -16,11 +16,6 @@ export interface StatsInit { computeThrottleTimeout: number } -export interface TransferStats { - dataReceived: BigInt - dataSent: BigInt -} - export class DefaultStats extends EventEmitter implements Stats { private readonly enabled: boolean public queue: Array<[string, number, number]>