rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wenf...@apache.org
Subject [rocketmq-client-go] branch native updated: feat: rename persistent with interval (#359)
Date Fri, 03 Jan 2020 08:31:32 GMT
This is an automated email from the ASF dual-hosted git repository.

wenfeng pushed a commit to branch native
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-go.git


The following commit(s) were added to refs/heads/native by this push:
     new 08cdb4e  feat: rename persistent with interval (#359)
08cdb4e is described below

commit 08cdb4e728c452c050c56862c527b934f245cbe4
Author: xujianhai666 <52450794+xujianhai666@users.noreply.github.com>
AuthorDate: Fri Jan 3 16:31:26 2020 +0800

    feat: rename persistent with interval (#359)
    
    Closes #358
---
 internal/client.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/client.go b/internal/client.go
index fec61fd..e566797 100644
--- a/internal/client.go
+++ b/internal/client.go
@@ -48,7 +48,7 @@ const (
 	_HeartbeatBrokerInterval = 30 * time.Second
 
 	// Offset persistent interval for consumer
-	_PersistOffset = 5 * time.Second
+	_PersistOffsetInterval = 5 * time.Second
 
 	// Rebalance interval
 	_RebalanceInterval = 20 * time.Second
@@ -320,7 +320,7 @@ func (c *rmqClient) Start() {
 
 		// schedule persist offset
 		go func() {
-			ticker := time.NewTicker(_PersistOffset)
+			ticker := time.NewTicker(_PersistOffsetInterval)
 			defer ticker.Stop()
 			for {
 				select {


Mime
View raw message