about summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-24 20:18:31 +0100
committerDrew DeVault <sir@cmpwn.com>2020-02-25 11:05:26 -0500
commit5dd0f454c197ccbce369ee88d47d5be8cd5e8265 (patch)
tree081b3b032afa6e945478a1e5bf1dfcf69b64fcb5 /worker
parent53d0c0a9030ce20ee98c2a0bdb221e73f647c16c (diff)
downloadaerc-5dd0f454c197ccbce369ee88d47d5be8cd5e8265.tar.gz
lib/msgstore: debounce directoryUpdateRequests
Apparently sending an event for every incoming messageInfo slows down
the application significantly.

Therefore this slows down the emmision rate, on the cost of being out of date
in some cases.
Diffstat (limited to 'worker')
-rw-r--r--worker/imap/worker.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index ddd95b6..1037f81 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -181,6 +181,8 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
 		w.handleAppendMessage(msg)
 	case *types.SearchDirectory:
 		w.handleSearchDirectory(msg)
+	case *types.DirectoryInfoUpdateRequest:
+		// not implemented
 	default:
 		reterr = errUnsupported
 	}