yes they should occur once

Fixed and committed

On Wed, Nov 3, 2010 at 1:34 PM, Imtiaz Ahmed H E <in.imt...@gmail.com> wrote:
> In SchedulerActor.scala,
>
> def sendMessage() {
>      val now = System.currentTimeMillis
>      val dateString = TimeHelpers.toInternetDate(now)
>      Message.create.author(user).
>      when(now).
>        source("every").
>      setTextAndTags("Regularly scheduled action: " + dateString, Nil, Empty).
>      foreach{ msg =>
>        // Noisy & can't be rejected
>          // if (msg.save) {
>        messageProcessor ! Distributor.AddMessageToMailbox(user, msg, reason)
>              // }
>      }
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>    }
>
>
> I believe, the following lines should occur only once, they are repeated ?
>
>      Stats incr "schedulerMessagesCreated"
>      Stats incr "messagesCreated"
>
> Imtiaz

Reply via email to