Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .....
- context.system.scheduler.schedule(1 minute, 1 minute, self, StartScout)
- .....
- .....
- def receive = {
- case StartScout ⇒
- if (scheduledKeywords.isEmpty) {
- scheduledKeywords = keywordsConfig.keywords.toList
- }
- if (scheduledKeywords.nonEmpty) {
- val (head :: tail) = scheduledKeywords
- scheduledKeywords = tail
- fetchRssPage(0, head)
- }
- // loadFromFiles("/Users/kulikov/Work/text/ya/imho/")
- }
Advertisement
Add Comment
Please, Sign In to add comment