소스 검색

fix interface

Darien Raymond 8 년 전
부모
커밋
d792faff70
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      transport/ray/ray.go

+ 1 - 2
transport/ray/ray.go

@@ -1,7 +1,6 @@
 package ray
 
 import "v2ray.com/core/common/buf"
-import "time"
 
 // OutboundRay is a transport interface for outbound connections.
 type OutboundRay interface {
@@ -41,8 +40,8 @@ type RayStream interface {
 
 type InputStream interface {
 	buf.Reader
+	buf.TimeoutReader
 	RayStream
-	ReadTimeout(time.Duration) (*buf.Buffer, error)
 }
 
 type OutputStream interface {