[ 
https://issues.apache.org/jira/browse/GEARPUMP-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859349#comment-15859349
 ] 

ASF GitHub Bot commented on GEARPUMP-268:
-----------------------------------------

Github user manuzhang commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/142#discussion_r100280398
  
    --- Diff: 
examples/streaming/state/src/main/scala/org/apache/gearpump/streaming/examples/state/processor/CountProcessor.scala
 ---
    @@ -37,7 +37,7 @@ class CountProcessor(taskContext: TaskContext, conf: 
UserConfig)
       }
     
       override def processMessage(state: PersistentState[Int], message: 
Message): Unit = {
    -    state.update(message.timestamp, 1)
    +    state.update(message.timestamp.toEpochMilli, 1)
    --- End diff --
    
    It's only used internally in `Subscription` and can be replaced in the 
future as well. 


> Use java.time.Instant instead of Long for timestamps
> ----------------------------------------------------
>
>                 Key: GEARPUMP-268
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-268
>             Project: Apache Gearpump
>          Issue Type: Improvement
>            Reporter: Manu Zhang
>            Assignee: Manu Zhang
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to