Fix server context

This commit is contained in:
世界 2023-04-24 14:10:35 +08:00
parent 9b0d527c3b
commit f6a6b7258c
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -31,7 +31,7 @@ func HandleConnection(ctx context.Context, handler ServerHandler, logger logger.
return err return err
} }
var group task.Group var group task.Group
group.Append0(func(ctx context.Context) error { group.Append0(func(_ context.Context) error {
var stream net.Conn var stream net.Conn
for { for {
stream, err = session.Accept() stream, err = session.Accept()