Skip to content

Commit a082b4e

Browse files
committed
Fix typo in enum variable name
1 parent 059131a commit a082b4e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

e2e/endtoend_message.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import "time"
44

55
const (
66
_ = iota
7-
EndToEndeMessageStateCreated
8-
EndToEndeMessageStateProducedSuccessfully
7+
EndToEndMessageStateCreated
8+
EndToEndMessageStateProducedSuccessfully
99
)
1010

1111
type EndToEndMessage struct {

e2e/message_tracker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ func (t *messageTracker) onMessageExpired(_ string, reason ttlcache.EvictionReas
128128
zap.Int64("age_ms", age.Milliseconds()),
129129
zap.Int("partition", msg.partition),
130130
zap.String("message_id", msg.MessageID),
131-
zap.Bool("successfully_produced", msg.state == EndToEndeMessageStateProducedSuccessfully),
131+
zap.Bool("successfully_produced", msg.state == EndToEndMessageStateProducedSuccessfully),
132132
)
133133
}

e2e/producer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (s *Service) produceMessage(ctx context.Context, partition int) {
5757
// produced successfully, but it got lost somewhere.
5858
// We need to use updateItemIfExists() because it's possible that the message has already been consumed
5959
// before we have received the message here (because we were awaiting the produce ack).
60-
msg.state = EndToEndeMessageStateProducedSuccessfully
60+
msg.state = EndToEndMessageStateProducedSuccessfully
6161
s.messageTracker.updateItemIfExists(msg)
6262
}
6363

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

7474
partition: partition,
75-
state: EndToEndeMessageStateCreated,
75+
state: EndToEndMessageStateCreated,
7676
}
7777

7878
mjson, err := json.Marshal(message)

0 commit comments

Comments
 (0)