1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

doc: add comment to Envelope

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-12-16 21:51:00 -08:00
committed by Juan Batiz-Benet
parent e11f099c42
commit 1d715956f5

View File

@ -17,8 +17,11 @@ var log = u.Logger("strategy")
// LedgerMap lists Ledgers by their Partner key.
type ledgerMap map[u.Key]*ledger
// Envelope contains a message for a Peer
type Envelope struct {
Peer peer.Peer
// Peer is the intended recipient
Peer peer.Peer
// Message is the payload
Message bsmsg.BitSwapMessage
}