mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
remove unnecessary interface
This commit is contained in:
parent
2fb1258639
commit
98e330513d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user