lizhigong opened a new pull request, #24884:
URL: https://github.com/apache/flink/pull/24884

   Duration.ofSeconds(1) is no longer accepted by the API, use Time.seconds(1) 
instead.
   
   ## What is the purpose of the change
   
   Change typos.
   
   ## Brief change log
   
   In the documentation of [Working With State] 
(https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/state/#state-time-to-live-ttl),
 the code uses `Duration.ofSeconds(1)`, however, the accepted type is 
`org.apache.flink.api.common.time.Time`, thus this should be changed to 
`Time.seconds(1)`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to