mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:14:40 +03:00
style nit: only take address of structs when passed on
This commit is contained in:
4
ctl.go
4
ctl.go
@ -336,13 +336,13 @@ func servectlcmd(ctx context.Context, ctl *ctl, shutdown func()) {
|
||||
err = msgFile.Sync()
|
||||
ctl.xcheck(err, "syncing message to storage")
|
||||
|
||||
m := &store.Message{
|
||||
m := store.Message{
|
||||
Received: time.Now(),
|
||||
Size: mw.Size,
|
||||
}
|
||||
|
||||
a.WithWLock(func() {
|
||||
err := a.DeliverDestination(log, addr, m, msgFile)
|
||||
err := a.DeliverDestination(log, addr, &m, msgFile)
|
||||
ctl.xcheck(err, "delivering message")
|
||||
log.Info("message delivered through ctl", slog.Any("to", to))
|
||||
})
|
||||
|
Reference in New Issue
Block a user