From 258793ed920b2dbb328011b9e274fba81d19c7e0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 13 Jan 2025 17:08:33 +0800 Subject: serve_mx stuff rename --- serve_mx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serve_mx.go b/serve_mx.go index 5e52ed3..4909644 100644 --- a/serve_mx.go +++ b/serve_mx.go @@ -224,7 +224,7 @@ func (session *mx_recv_session) handle(ctx context.Context) error { } } -func handle_mx_recv_conn(ctx context.Context, net_conn net.Conn) error { +func mx_new_session(ctx context.Context, net_conn net.Conn) error { session := mx_recv_session{ net_conn: net_conn, } @@ -254,7 +254,7 @@ func serve_mx() { go func() { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - err := handle_mx_recv_conn(ctx, conn) + err := mx_new_session(ctx, conn) if err != nil { if err == err_connection_handler_eof { clog.Info("MX: Connection for " + conn.RemoteAddr().String() + " closed with EOF") -- cgit v1.2.3