[ 
https://issues.apache.org/jira/browse/TUBEMQ-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guo Jiwei updated TUBEMQ-64:
----------------------------
    Description: 
1.  minor update
 change ProducerHeartbeatTask#run
   ```
    if (response.getTopicInfosList().isEmpty()) {
         if (System.currentTimeMillis() - lastEmptyTopicPrintTIme > 60000){
             logger.warn("[Heartbeat Update] found empty topicList update!");   
           
             lastEmptyTopicPrintTIme = System.currentTimeMillis();       
          }
      }
  ```
  to 
 ```
    if (response.getTopicInfosList().isEmpty() &&
             System.currentTimeMillis() - lastEmptyTopicPrintTime > 60000){     
        
            logger.warn("[Heartbeat Update] found empty topicList update!");    
         
            lastEmptyTopicPrintTime = System.currentTimeMillis();       
     }
  ```   

2. fix some typos 
    ```
     lastEmptyBrokerPrintTIme -> lastEmptyBrokerPrintTime

    lastEmptyTopicPrintTIme  ->  lastEmptyTopicPrintTime

    chaneged  -> changed

   ```

 

  was:
1.  minor update

ProducerHeartbeatTask#run

  change

  ```

    if (response.getTopicInfosList().isEmpty()) {
        if (System.currentTimeMillis() - lastEmptyTopicPrintTIme > 60000) {
             logger.warn("[Heartbeat Update] found empty topicList update!");
             lastEmptyTopicPrintTIme = System.currentTimeMillis();
      }
   }

  ```

  to 

 ```

    if (response.getTopicInfosList().isEmpty() &&
            System.currentTimeMillis() - lastEmptyTopicPrintTime > 60000) {
            logger.warn("[Heartbeat Update] found empty topicList update!");
            lastEmptyTopicPrintTime = System.currentTimeMillis();
      }

  ```   

2. fix some typos 

   ```

    lastEmptyBrokerPrintTIme -> lastEmptyBrokerPrintTime

    lastEmptyTopicPrintTIme  ->  lastEmptyTopicPrintTime

    chaneged  -> changed

   ```

 


> minor update & fix some typos
> -----------------------------
>
>                 Key: TUBEMQ-64
>                 URL: https://issues.apache.org/jira/browse/TUBEMQ-64
>             Project: Apache TubeMQ
>          Issue Type: Improvement
>            Reporter: Guo Jiwei
>            Assignee: Guo Jiwei
>            Priority: Low
>
> 1.  minor update
>  change ProducerHeartbeatTask#run
>    ```
>     if (response.getTopicInfosList().isEmpty()) {
>          if (System.currentTimeMillis() - lastEmptyTopicPrintTIme > 60000){
>              logger.warn("[Heartbeat Update] found empty topicList update!"); 
>              
>              lastEmptyTopicPrintTIme = System.currentTimeMillis();       
>           }
>       }
>   ```
>   to 
>  ```
>     if (response.getTopicInfosList().isEmpty() &&
>              System.currentTimeMillis() - lastEmptyTopicPrintTime > 60000){   
>           
>             logger.warn("[Heartbeat Update] found empty topicList update!");  
>            
>             lastEmptyTopicPrintTime = System.currentTimeMillis();       
>      }
>   ```   
> 2. fix some typos 
>     ```
>      lastEmptyBrokerPrintTIme -> lastEmptyBrokerPrintTime
>     lastEmptyTopicPrintTIme  ->  lastEmptyTopicPrintTime
>     chaneged  -> changed
>    ```
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to