chore: remove unreachable code in sudoku

This commit is contained in:
wwqgtxx
2026-01-26 09:08:14 +08:00
parent 98b3060558
commit 65c3d3e4e2
4 changed files with 3 additions and 313 deletions

View File

@@ -265,7 +265,7 @@ func (s *Sudoku) dialAndHandshake(ctx context.Context, cfg *sudoku.ProtocolConfi
}
upgrade := func(raw net.Conn) (net.Conn, error) {
return sudoku.ClientHandshakeWithOptions(raw, &handshakeCfg, sudoku.ClientHandshakeOptions{})
return sudoku.ClientHandshake(raw, &handshakeCfg)
}
var (
@@ -303,7 +303,7 @@ func (s *Sudoku) dialAndHandshake(ctx context.Context, cfg *sudoku.ProtocolConfi
}
if !handshakeDone {
c, err = sudoku.ClientHandshakeWithOptions(c, &handshakeCfg, sudoku.ClientHandshakeOptions{})
c, err = sudoku.ClientHandshake(c, &handshakeCfg)
if err != nil {
return nil, err
}