From 8724c4b8935aceefdc3cea4e82dfba7d28a36cc6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 13 Jan 2025 12:25:46 +0800 Subject: Bug fixes --- deliver_local.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'deliver_local.go') diff --git a/deliver_local.go b/deliver_local.go index 9a29459..47af7f9 100644 --- a/deliver_local.go +++ b/deliver_local.go @@ -1,8 +1,8 @@ package main import ( - "fmt" "context" + "github.com/jackc/pgx/v5/pgxpool" ) @@ -15,7 +15,6 @@ func deliver_local(ctx context.Context, db *pgxpool.Pool, envelope_from string, for _, address := range addresses { _, err = tx.Exec(ctx, "INSERT INTO mail (mailbox_id, data) SELECT a.mailbox_id, $2::bytea FROM addresses a JOIN mailboxes m ON a.mailbox_id = m.id WHERE a.address = $1;", address, data) if err != nil { - fmt.Printf("%#v\n", err) return err } } -- cgit v1.2.3