diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-08-30 15:41:29 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-08-31 00:05:31 +0200 |
commit | a5648c3c0468a27e722159a115a4260c5e84c465 (patch) | |
tree | 5b89e875c1ecf8f741c7a60291ebf76af7c9d3c4 /lib/ui/fill.go | |
parent | 9cc507049b7b4b1c5d431deaec0854f4bec67dba (diff) | |
download | aerc-a5648c3c0468a27e722159a115a4260c5e84c465.tar.gz |
mbox: remove datacounter dependency for size info
The mbox worker uses the only reference to the datacounter object (see
previous commit where it was removed from 'postpone'). The counter
object in mbox is counting the size of the mbox message. Use io.Discard
and the result from the io.Copy call to set this size. This saves us
from writing to memory, since io.Discard will not store any of the
written bytes. It also removes the dependency on datacounter.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ui/fill.go')
0 files changed, 0 insertions, 0 deletions