aboutsummaryrefslogtreecommitdiffstats
path: root/worker/worker.go
diff options
context:
space:
mode:
authorJulian Pidancet <julian.pidancet@oracle.com>2022-10-26 22:29:06 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-27 21:45:31 +0200
commitc31a5fc33dbf807a4514722785ebb70b0171c736 (patch)
tree9fbc3fd675012a293ed21d41384bcfe82f0f58dd /worker/worker.go
parentfbff8cf0ac577d5e7d981b54efd2919212fd1db1 (diff)
downloadaerc-c31a5fc33dbf807a4514722785ebb70b0171c736.tar.gz
notmuch: simplify DirectoryInfo emitting logic
Refactor the code emitting DirectoryInfo messages. Reduce function call indirections by retiring gatherDirectoryInfo(), buildDirInfo() and emitDirectoryInfo(), and replacing them with getDirectoryInfo() (aligning the code with what is done in the maildir worker by the same occasion). Also merge queryFromName(), which no longer needs to be called from different places, in handleOpenDirectory(). Signed-off-by: Julian Pidancet <julian.pidancet@oracle.com> Acked-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'worker/worker.go')
0 files changed, 0 insertions, 0 deletions