From 98e330513d43d71d558fc1c1f8c992ddc52ac909 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 14 Oct 2018 08:23:41 +0200 Subject: [PATCH] remove unnecessary interface --- transport/internet/connection.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/transport/internet/connection.go b/transport/internet/connection.go index 354febf39..0c627042b 100644 --- a/transport/internet/connection.go +++ b/transport/internet/connection.go @@ -2,20 +2,18 @@ package internet import ( "net" + + "v2ray.com/core/features/stats" ) type Connection interface { net.Conn } -type addInt64 interface { - Add(int64) int64 -} - type StatCouterConnection struct { Connection - Uplink addInt64 - Downlink addInt64 + Uplink stats.Counter + Downlink stats.Counter } func (c *StatCouterConnection) Read(b []byte) (int, error) {