mirror of https://github.com/v2ray/v2ray-core
remove unnecessary interface
parent
2fb1258639
commit
98e330513d
|
@ -2,20 +2,18 @@ package internet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
"v2ray.com/core/features/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Connection interface {
|
type Connection interface {
|
||||||
net.Conn
|
net.Conn
|
||||||
}
|
}
|
||||||
|
|
||||||
type addInt64 interface {
|
|
||||||
Add(int64) int64
|
|
||||||
}
|
|
||||||
|
|
||||||
type StatCouterConnection struct {
|
type StatCouterConnection struct {
|
||||||
Connection
|
Connection
|
||||||
Uplink addInt64
|
Uplink stats.Counter
|
||||||
Downlink addInt64
|
Downlink stats.Counter
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *StatCouterConnection) Read(b []byte) (int, error) {
|
func (c *StatCouterConnection) Read(b []byte) (int, error) {
|
||||||
|
|
Loading…
Reference in New Issue