Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable name in Eureka spec #1162

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/eureka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,17 @@ function sendPacket(
assert(timeoutHeight === 0 || latestClientHeight < timeoutHeight)

// if the sequence doesn't already exist, this call initializes the sequence to 0
sequence = channelStore.get(nextSequenceSendPath(commitPort, sourceChannel))
sequence = channelStore.get(nextSequenceSendPath(sourcePort, sourceChannel))

// store commitment to the packet data & packet timeout
channelStore.set(
packetCommitmentPath(commitPort, sourceChannel, sequence),
packetCommitmentPath(sourcePort, sourceChannel, sequence),
hash(hash(data), timeoutHeight, timeoutTimestamp)
)

// increment the sequence. Thus there are monotonically increasing sequences for packet flow
// from sourcePort, sourceChannel pair
channelStore.set(nextSequenceSendPath(commitPort, sourceChannel), sequence+1)
channelStore.set(nextSequenceSendPath(sourcePort, sourceChannel), sequence+1)

// log that a packet can be safely sent
emitLogEntry("sendPacket", {
Expand Down