Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Sep 27, 2024
1 parent 7dcb1b6 commit 3221fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func NewConsumer(protocol config.Protocol, cfg config.Config, id int) (Consumer,
case config.STOMP:
c := stomp_client.NewConsumer(cfg, id)
if c == nil {
return nil, fmt.Errorf("failed to create an AMQP-1.0 consumer")
return nil, fmt.Errorf("failed to create a STOMP consumer")
}
return c, nil
case config.MQTT:
c := mqtt_client.NewConsumer(cfg, id)
if c == nil {
return nil, fmt.Errorf("failed to create an AMQP-1.0 consumer")
return nil, fmt.Errorf("failed to create an MQTT consumer")
}
return c, nil
}
Expand Down

0 comments on commit 3221fe7

Please sign in to comment.