Skip to content

Commit

Permalink
Merge pull request #283 from SwanSpouse/remove_dup_check
Browse files Browse the repository at this point in the history
remove duplicate 'Config.assertInitialized()' check
  • Loading branch information
ploxiln authored Mar 1, 2020
2 parents 93aecae + 9da8b2b commit 6350dfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ type Consumer struct {
// The only valid way to create a Config is via NewConfig, using a struct literal will panic.
// After Config is passed into NewConsumer the values are no longer mutable (they are copied).
func NewConsumer(topic string, channel string, config *Config) (*Consumer, error) {
config.assertInitialized()

if err := config.Validate(); err != nil {
return nil, err
}
Expand Down
1 change: 0 additions & 1 deletion producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (t *ProducerTransaction) finish() {
// The only valid way to create a Config is via NewConfig, using a struct literal will panic.
// After Config is passed into NewProducer the values are no longer mutable (they are copied).
func NewProducer(addr string, config *Config) (*Producer, error) {
config.assertInitialized()
err := config.Validate()
if err != nil {
return nil, err
Expand Down

0 comments on commit 6350dfa

Please sign in to comment.