aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2023-08-30 15:41:29 -0500
committerRobin Jarry <robin@jarry.cc>2023-08-31 00:05:31 +0200
commita5648c3c0468a27e722159a115a4260c5e84c465 (patch)
tree5b89e875c1ecf8f741c7a60291ebf76af7c9d3c4 /go.mod
parent9cc507049b7b4b1c5d431deaec0854f4bec67dba (diff)
downloadaerc-a5648c3c0468a27e722159a115a4260c5e84c465.tar.gz
aerc-a5648c3c0468a27e722159a115a4260c5e84c465.zip
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 'go.mod')
-rw-r--r--go.mod1
1 files changed, 0 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index a429c283..9b712a34 100644
--- a/go.mod
+++ b/go.mod
@@ -27,7 +27,6 @@ require (
github.com/lithammer/fuzzysearch v1.1.5
github.com/mattn/go-isatty v0.0.18
github.com/mattn/go-runewidth v0.0.14
- github.com/miolini/datacounter v1.0.3
github.com/pkg/errors v0.9.1
github.com/rivo/uniseg v0.4.4
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab