-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fefb28
commit 013ad4f
Showing
5 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
package types | ||
|
||
import "fmt" | ||
|
||
const ( | ||
// SubModuleName defines the channelv2 module name. | ||
SubModuleName = "channelv2" | ||
|
||
// KeyAsyncPacket defines the key to store the async packet. | ||
KeyAsyncPacket = "async_packet" | ||
) | ||
|
||
// AsyncPacketKey returns the key under which the packet is stored | ||
// if the receiving application returns an async acknowledgement. | ||
func AsyncPacketKey(clientID string, sequence uint64) []byte { | ||
return []byte(fmt.Sprintf("%s/%s/%d", KeyAsyncPacket, clientID, sequence)) | ||
} |