refactor (remove TimeoutOnly)

This commit is contained in:
Meo597
2026-07-08 21:44:22 +08:00
parent b53f8b56a4
commit 723ef2b8e6
14 changed files with 14 additions and 71 deletions
-4
View File
@@ -131,10 +131,6 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
behaviorSeed := crc64.Checksum(hashkdf.Sum(nil), crc64.MakeTable(crc64.ISO))
if session.TimeoutOnlyFromContext(ctx) {
ctx = context.WithoutCancel(ctx)
}
session := encoding.NewClientSession(ctx, int64(behaviorSeed))
sessionPolicy := h.policyManager.ForLevel(request.User.Level)