diff options
author | Tristan Partin <tristan@partin.io> | 2024-08-11 16:02:09 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-08-20 09:29:31 +0200 |
commit | e35c193db12fe4814b7144f2f37e5a7dd5715826 (patch) | |
tree | b3a1dca606a477f5e6eb0019ab2a27c3800b58cf | |
parent | 9147f43b1e372a8199c52d2e77e44fbf2f2041b1 (diff) | |
download | aerc-e35c193db12fe4814b7144f2f37e5a7dd5715826.tar.gz |
jmap: fix emailKey function name
This was just a simple typo.
Signed-off-by: Tristan Partin <tristan@partin.io>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | worker/jmap/cache/email.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/jmap/cache/email.go b/worker/jmap/cache/email.go index 52044281..83fbdddc 100644 --- a/worker/jmap/cache/email.go +++ b/worker/jmap/cache/email.go @@ -6,7 +6,7 @@ import ( ) func (c *JMAPCache) GetEmail(id jmap.ID) (*email.Email, error) { - buf, err := c.get(emailey(id)) + buf, err := c.get(emailKey(id)) if err != nil { return nil, err } @@ -23,13 +23,13 @@ func (c *JMAPCache) PutEmail(id jmap.ID, e *email.Email) error { if err != nil { return err } - return c.put(emailey(id), buf) + return c.put(emailKey(id), buf) } func (c *JMAPCache) DeleteEmail(id jmap.ID) error { - return c.delete(emailey(id)) + return c.delete(emailKey(id)) } -func emailey(id jmap.ID) string { +func emailKey(id jmap.ID) string { return "email/" + string(id) } |