소스 검색

remove unnecessary interface

Darien Raymond 7 년 전
부모
커밋
98e330513d
1개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 6
      transport/internet/connection.go

+ 4 - 6
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) {