diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-01-11 09:04:18 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-01-11 09:04:18 -0500 |
commit | 4074445cbb45dc6ec132e67b7eac9f32dcfd53de (patch) | |
tree | abb2348df84e12f0a781a4e0d29509962d01c756 /worker/imap | |
parent | ffba56133406027a6a740f9f4454b27134143f0a (diff) | |
download | aerc-4074445cbb45dc6ec132e67b7eac9f32dcfd53de.tar.gz |
Move worker into account tab
Diffstat (limited to 'worker/imap')
-rw-r--r-- | worker/imap/worker.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go index 14e4004c..080927df 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -18,13 +18,8 @@ func NewIMAPWorker() *IMAPWorker { } } -func (w *IMAPWorker) GetMessage() types.WorkerMessage { - select { - case msg := <-w.messages: - return msg - default: - return nil - } +func (w *IMAPWorker) GetMessages() chan types.WorkerMessage { + return w.messages } func (w *IMAPWorker) PostAction(msg types.WorkerMessage) { |