@@ -197,27 +197,37 @@ func lookErrorCode(errorCode uint16) error {
197
197
198
198
func lookUpCommand (command uint16 ) string {
199
199
var constLookup = map [uint16 ]string {
200
- commandPeerProperties : `commandPeerProperties` ,
201
- commandSaslHandshake : `commandSaslHandshake` ,
202
- commandSaslAuthenticate : `commandSaslAuthenticate` ,
203
- commandTune : `commandTune` ,
204
- commandOpen : `commandOpen` ,
205
- commandHeartbeat : `commandHeartbeat` ,
206
- CommandMetadataUpdate : `CommandMetadataUpdate` ,
207
- commandMetadata : `CommandMetadata` ,
208
- commandDeleteStream : `CommandDeleteStream` ,
209
- commandCreateStream : `CommandCreateStream` ,
210
- CommandUnsubscribe : `CommandUnsubscribe` ,
211
- CommandQueryOffset : `CommandQueryOffset` ,
212
- commandCredit : `CommandCredit` ,
213
- commandDeliver : `CommandDeliver` ,
214
- commandSubscribe : `CommandSubscribe` ,
215
- CommandDeletePublisher : `CommandDeletePublisher` ,
216
- commandPublishError : `CommandPublishError` ,
217
- commandPublishConfirm : `CommandPublishConfirm` ,
218
- commandDeclarePublisher : `CommandDeclarePublisher` ,
219
- commandUnitTest : `UnitTest` ,
220
- CommandClose : `CommandClose` ,
200
+ commandPeerProperties : `commandPeerProperties` ,
201
+ commandSaslHandshake : `commandSaslHandshake` ,
202
+ commandSaslAuthenticate : `commandSaslAuthenticate` ,
203
+ commandTune : `commandTune` ,
204
+ commandOpen : `commandOpen` ,
205
+ commandHeartbeat : `commandHeartbeat` ,
206
+ CommandMetadataUpdate : `CommandMetadataUpdate` ,
207
+ commandMetadata : `CommandMetadata` ,
208
+ commandDeleteStream : `CommandDeleteStream` ,
209
+ commandCreateStream : `CommandCreateStream` ,
210
+ CommandUnsubscribe : `CommandUnsubscribe` ,
211
+ CommandQueryOffset : `CommandQueryOffset` ,
212
+ commandCredit : `CommandCredit` ,
213
+ commandDeliver : `CommandDeliver` ,
214
+ commandSubscribe : `CommandSubscribe` ,
215
+ CommandDeletePublisher : `CommandDeletePublisher` ,
216
+ commandPublishError : `CommandPublishError` ,
217
+ commandPublishConfirm : `CommandPublishConfirm` ,
218
+ commandDeclarePublisher : `CommandDeclarePublisher` ,
219
+ commandPublish : `CommandPublish` ,
220
+ commandQueryPublisherSequence : `CommandQueryPublisherSequence` ,
221
+ commandQueryRoute : `CommandQueryRoute` ,
222
+ commandQueryPartition : `CommandQueryPartition` ,
223
+ commandExchangeVersion : `CommandExchangeVersion` ,
224
+ commandStreamStatus : `CommandStreamStatus` ,
225
+ commandCreateSuperStream : `CommandCreateSuperStream` ,
226
+ commandDeleteSuperStream : `CommandDeleteSuperStream` ,
227
+ commandConsumerUpdate : `CommandConsumerUpdate` ,
228
+
229
+ commandUnitTest : `UnitTest` ,
230
+ CommandClose : `CommandClose` ,
221
231
}
222
232
if constLookup [command ] == "" {
223
233
return fmt .Sprintf ("Command not handled %d" , command )
0 commit comments