diff options
author | dakkar <dakkar@thenautilus.net> | 2020-03-16 15:03:43 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-03-16 15:34:19 +0000 |
commit | ee82c4419d01243ecea3ce3a736b43edf2df5783 (patch) | |
tree | 067a9adf3702c65a9d6c133a4dde8873a5293a3d /t/store.t | |
parent | always decont the arguments to pair (diff) | |
download | MaildirIndexer-ee82c4419d01243ecea3ce3a736b43edf2df5783.tar.gz MaildirIndexer-ee82c4419d01243ecea3ce3a736b43edf2df5783.tar.bz2 MaildirIndexer-ee82c4419d01243ecea3ce3a736b43edf2df5783.zip |
more async!
indices now work from channels, so we have a bunch of workers doing
the parsing, and one worker per index, no lock needed (the implicit
lock in the react/whenever is enough)
next: indices return confidence level, store returns best response
next next: spamc as an index
Diffstat (limited to 't/store.t')
-rw-r--r-- | t/store.t | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -30,13 +30,14 @@ subtest 'indexing' => { subtest 'finding' => { my Channel $file-channel .= new; my TestIndex $index1 .= new(:responses('1',Str,'1',Str),:name('index1')); - my TestIndex $index2 .= new(:responses('2',Str),:name('index2')); + my TestIndex $index2 .= new(:responses('2',Str,Str,Str),:name('index2')); my MaildirIndexer::Store $store .= new( :$file-channel, :indices($index1,$index2), :1workers, ); + $store.start; my @responses = $store.mailbox-for-email(MaildirIndexer::Email.new) xx 4; |