瀏覽代碼

use the third person singular present tense

s/have/has
Diego Alvarez 4 年之前
父節點
當前提交
fb128a05f6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      async_producer_test.go

+ 2 - 2
async_producer_test.go

@@ -1237,7 +1237,7 @@ type appendInterceptor struct {
 
 func (b *appendInterceptor) onSend(msg *ProducerMessage) {
 	if b.i < 0 {
-		panic("hey, the interceptor have failed")
+		panic("hey, the interceptor has failed")
 	}
 	v, _ := msg.Value.Encode()
 	msg.Value = StringEncoder(string(v) + strconv.Itoa(b.i))
@@ -1246,7 +1246,7 @@ func (b *appendInterceptor) onSend(msg *ProducerMessage) {
 
 func (b *appendInterceptor) onConsume(msg *ConsumerMessage) {
 	if b.i < 0 {
-		panic("hey, the interceptor have failed")
+		panic("hey, the interceptor has failed")
 	}
 	msg.Value = []byte(string(msg.Value) + strconv.Itoa(b.i))
 	b.i++