aboutsummaryrefslogtreecommitdiff
path: root/serve_mx.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-13 17:08:33 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-13 17:08:33 +0800
commit258793ed920b2dbb328011b9e274fba81d19c7e0 (patch)
tree918060c127c2ece89026a6522a7a5c0258040e4b /serve_mx.go
parentReformat code (diff)
downloadmaild-258793ed920b2dbb328011b9e274fba81d19c7e0.tar.gz
maild-258793ed920b2dbb328011b9e274fba81d19c7e0.tar.zst
maild-258793ed920b2dbb328011b9e274fba81d19c7e0.zip
serve_mx stuff rename
Diffstat (limited to '')
-rw-r--r--serve_mx.go4
1 files 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")