Skip to content

Commit 54dd154

Browse files
authored
Cleanup unneeded deadline
1 parent e3930e4 commit 54dd154

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: shadowaead/service_multi.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/sagernet/sing-shadowsocks"
1111
"github.com/sagernet/sing/common/auth"
1212
"github.com/sagernet/sing/common/buf"
13-
"github.com/sagernet/sing/common/bufio/deadline"
1413
E "github.com/sagernet/sing/common/exceptions"
1514
M "github.com/sagernet/sing/common/metadata"
1615
N "github.com/sagernet/sing/common/network"
@@ -126,11 +125,11 @@ func (s *MultiService[U]) newConnection(ctx context.Context, conn net.Conn, meta
126125
metadata.Protocol = "shadowsocks"
127126
metadata.Destination = destination
128127

129-
return s.handler.NewConnection(auth.ContextWithUser(ctx, user), deadline.NewConn(&serverConn{
128+
return s.handler.NewConnection(auth.ContextWithUser(ctx, user), &serverConn{
130129
Method: method,
131130
Conn: conn,
132131
reader: reader,
133-
}), metadata)
132+
}, metadata)
134133
}
135134

136135
func (s *MultiService[U]) WriteIsThreadUnsafe() {

0 commit comments

Comments
 (0)