diff src/google.coffee @ 28:faeb3b96bdeb

use html-to-text
author Mathias Gebbe <mgebbe@intevation.de>
date Tue, 29 Jul 2014 12:14:02 +0200
parents f27ddfa42e94
children 3e3fa35e3ce2
line wrap: on
line diff
--- a/src/google.coffee	Sat Jun 28 13:08:40 2014 +0200
+++ b/src/google.coffee	Tue Jul 29 12:14:02 2014 +0200
@@ -43,13 +43,13 @@
       #getUser(user)
       getFriends(user,callback)
   ], (err, friends) ->
-    async.eachLimit friends, 3, ((friend, callb) ->
+    async.eachLimit friends, 2, ((friend, callb) ->
       async.waterfall [
         (callback) ->
           getStream(user, friend, callback)
         (stream, callback) ->
           return if not stream? or not stream.items? or stream.items.length is 0
-          async.eachLimit stream.items, 10, ((post, cb) ->
+          async.eachLimit stream.items, 2, ((post, cb) ->
             async.waterfall [
               (callback) ->
                 console.log "check googlepost " + post.id + " to " +  me
@@ -81,20 +81,16 @@
                  #console.log err
                  console.log "done"
                  cb()
-                 return
           ), (err) ->
             callb()
-            return
       ], (err,  result) ->
     ), (err) ->
       if err
         console.log 'one post fail to process'
       else
         console.log 'all google friends processed'
-      return
   return
 
-
 #######################################
 ###### get user info googleplus  ######
 #######################################
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)