diff options
Diffstat (limited to 'worker/jmap/cache/email.go')
-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) } |