Skip to content

Commit

Permalink
Cleanup unneeded deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx authored Jul 5, 2024
1 parent e3930e4 commit 54dd154
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shadowaead/service_multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/sagernet/sing-shadowsocks"
"github.com/sagernet/sing/common/auth"
"github.com/sagernet/sing/common/buf"
"github.com/sagernet/sing/common/bufio/deadline"
E "github.com/sagernet/sing/common/exceptions"
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"
Expand Down Expand Up @@ -126,11 +125,11 @@ func (s *MultiService[U]) newConnection(ctx context.Context, conn net.Conn, meta
metadata.Protocol = "shadowsocks"
metadata.Destination = destination

return s.handler.NewConnection(auth.ContextWithUser(ctx, user), deadline.NewConn(&serverConn{
return s.handler.NewConnection(auth.ContextWithUser(ctx, user), &serverConn{
Method: method,
Conn: conn,
reader: reader,
}), metadata)
}, metadata)
}

func (s *MultiService[U]) WriteIsThreadUnsafe() {
Expand Down

0 comments on commit 54dd154

Please sign in to comment.