style nit: only take address of structs when passed on

This commit is contained in:
Mechiel Lukkien
2024-04-14 12:46:24 +02:00
parent 2a949f9f79
commit b7d6540d51
3 changed files with 6 additions and 6 deletions

View File

@ -276,7 +276,7 @@ func deliverDSN(ctx context.Context, log mlog.Log, m Msg, remoteMTA dsn.NameIP,
return
}
msg := &store.Message{
msg := store.Message{
Received: time.Now(),
Size: msgWriter.Size,
MsgPrefix: []byte{},
@ -294,7 +294,7 @@ func deliverDSN(ctx context.Context, log mlog.Log, m Msg, remoteMTA dsn.NameIP,
}
acc.WithWLock(func() {
if err := acc.DeliverMailbox(log, mailbox, msg, msgFile); err != nil {
if err := acc.DeliverMailbox(log, mailbox, &msg, msgFile); err != nil {
qlog("delivering dsn to mailbox", err)
return
}