1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

First crack at single gob per mailbox, hardly works

This commit is contained in:
James Hillyerd
2013-10-09 21:43:45 -07:00
parent 9c924d5659
commit 9354b9692f
2 changed files with 119 additions and 80 deletions

View File

@@ -342,7 +342,10 @@ func (ss *Session) dataHandler() {
if ss.server.storeMessages {
for _, m := range messages {
if m != nil {
m.Close()
if err := m.Close(); err != nil {
ss.logError("Error: %v while writing message", err)
// TODO Report to client?
}
expReceivedTotal.Add(1)
}
}