Skip to content

Commit

Permalink
Fix typo in enum variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
weeco committed Nov 4, 2021
1 parent 059131a commit a082b4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions e2e/endtoend_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "time"

const (
_ = iota
EndToEndeMessageStateCreated
EndToEndeMessageStateProducedSuccessfully
EndToEndMessageStateCreated
EndToEndMessageStateProducedSuccessfully
)

type EndToEndMessage struct {
Expand Down
2 changes: 1 addition & 1 deletion e2e/message_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ func (t *messageTracker) onMessageExpired(_ string, reason ttlcache.EvictionReas
zap.Int64("age_ms", age.Milliseconds()),
zap.Int("partition", msg.partition),
zap.String("message_id", msg.MessageID),
zap.Bool("successfully_produced", msg.state == EndToEndeMessageStateProducedSuccessfully),
zap.Bool("successfully_produced", msg.state == EndToEndMessageStateProducedSuccessfully),
)
}
4 changes: 2 additions & 2 deletions e2e/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *Service) produceMessage(ctx context.Context, partition int) {
// produced successfully, but it got lost somewhere.
// We need to use updateItemIfExists() because it's possible that the message has already been consumed
// before we have received the message here (because we were awaiting the produce ack).
msg.state = EndToEndeMessageStateProducedSuccessfully
msg.state = EndToEndMessageStateProducedSuccessfully
s.messageTracker.updateItemIfExists(msg)
}

Expand All @@ -72,7 +72,7 @@ func createEndToEndRecord(minionID string, topicName string, partition int) (*kg
Timestamp: time.Now().UnixNano(),

partition: partition,
state: EndToEndeMessageStateCreated,
state: EndToEndMessageStateCreated,
}

mjson, err := json.Marshal(message)
Expand Down

0 comments on commit a082b4e

Please sign in to comment.