Skip to content

Commit 546f0ed

Browse files
authored
fix: wrong Stringer implement for consumer group (aliyun#211)
1 parent e569c93 commit 546f0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client_consumer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type ConsumerGroup struct {
2020
}
2121

2222
func (cg *ConsumerGroup) String() string {
23-
return fmt.Sprintf("%+v", cg)
23+
return fmt.Sprintf("[ConsumerGroupName: %s, Timeout: %d, InOrder: %t]", cg.ConsumerGroupName, cg.Timeout, cg.InOrder)
2424
}
2525

2626
// ConsumerGroupCheckPoint type define

0 commit comments

Comments
 (0)