diff options
author | Javier Peletier <jm@epiclabs.io> | 2018-10-02 15:32:46 +0800 |
---|---|---|
committer | Javier Peletier <jm@epiclabs.io> | 2018-10-03 15:12:06 +0800 |
commit | 58c0879c2fbc9f88f35ba503674088da23a8a5a7 (patch) | |
tree | 64214db5b7e47a4b4677a4a487bdc9c83a063202 /swarm/storage/feeds/feed.go | |
parent | 68b8088cb9730bfe0ee2395dd5506dc744076fc2 (diff) | |
download | dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.gz dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.bz2 dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.lz dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.xz dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.zst dexon-58c0879c2fbc9f88f35ba503674088da23a8a5a7.zip |
swarm/storage/feeds: removed capital Feed throughout
Diffstat (limited to 'swarm/storage/feeds/feed.go')
-rw-r--r-- | swarm/storage/feeds/feed.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/swarm/storage/feeds/feed.go b/swarm/storage/feeds/feed.go index 8a807d506..d5b262555 100644 --- a/swarm/storage/feeds/feed.go +++ b/swarm/storage/feeds/feed.go @@ -25,7 +25,7 @@ import ( "github.com/ethereum/go-ethereum/swarm/storage" ) -// Feed represents a particular user's stream of updates on a Topic +// Feed represents a particular user's stream of updates on a topic type Feed struct { Topic Topic `json:"topic"` User common.Address `json:"user"` @@ -48,10 +48,10 @@ func (f *Feed) mapKey() uint64 { return *(*uint64)(unsafe.Pointer(&hash[0])) } -// binaryPut serializes this Feed instance into the provided slice +// binaryPut serializes this feed instance into the provided slice func (f *Feed) binaryPut(serializedData []byte) error { if len(serializedData) != feedLength { - return NewErrorf(ErrInvalidValue, "Incorrect slice size to serialize Feed. Expected %d, got %d", feedLength, len(serializedData)) + return NewErrorf(ErrInvalidValue, "Incorrect slice size to serialize feed. Expected %d, got %d", feedLength, len(serializedData)) } var cursor int copy(serializedData[cursor:cursor+TopicLength], f.Topic[:TopicLength]) @@ -71,7 +71,7 @@ func (f *Feed) binaryLength() int { // binaryGet restores the current instance from the information contained in the passed slice func (f *Feed) binaryGet(serializedData []byte) error { if len(serializedData) != feedLength { - return NewErrorf(ErrInvalidValue, "Incorrect slice size to read Feed. Expected %d, got %d", feedLength, len(serializedData)) + return NewErrorf(ErrInvalidValue, "Incorrect slice size to read feed. Expected %d, got %d", feedLength, len(serializedData)) } var cursor int @@ -84,7 +84,7 @@ func (f *Feed) binaryGet(serializedData []byte) error { return nil } -// Hex serializes the Feed to a hex string +// Hex serializes the feed to a hex string func (f *Feed) Hex() string { serializedData := make([]byte, feedLength) f.binaryPut(serializedData) |