浏览代码

Simply interfaces slightly

Evan Huus 12 年之前
父节点
当前提交
738410b0c0
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      request.go

+ 2 - 6
request.go

@@ -1,16 +1,12 @@
 package kafka
 
-type requestAPI interface {
+type requestEncoder interface {
+	encoder
 	key() int16
 	version() int16
 	expectResponse() bool
 }
 
-type requestEncoder interface {
-	encoder
-	requestAPI
-}
-
 type request struct {
 	correlation_id int32
 	id             *string