Ver código fonte

Simply interfaces slightly

Evan Huus 12 anos atrás
pai
commit
738410b0c0
1 arquivos alterados com 2 adições e 6 exclusões
  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