Browse Source

Merge pull request #531 from Shopify/fix-offset-expiry

Fix offset-manager expiry timestamps to 'now'
Willem van Bergen 9 years ago
parent
commit
60a3ef13a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      offset_manager.go

+ 1 - 1
offset_manager.go

@@ -476,7 +476,7 @@ func (bom *brokerOffsetManager) constructRequest() *OffsetCommitRequest {
 	for s := range bom.subscriptions {
 		s.lock.Lock()
 		if s.dirty {
-			r.AddBlock(s.topic, s.partition, s.offset, 0, s.metadata)
+			r.AddBlock(s.topic, s.partition, s.offset, ReceiveTime, s.metadata)
 		}
 		s.lock.Unlock()
 	}