aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/feeds/handler.go
diff options
context:
space:
mode:
authorJavier Peletier <jm@epiclabs.io>2018-10-02 15:32:46 +0800
committerJavier Peletier <jm@epiclabs.io>2018-10-03 15:12:06 +0800
commit58c0879c2fbc9f88f35ba503674088da23a8a5a7 (patch)
tree64214db5b7e47a4b4677a4a487bdc9c83a063202 /swarm/storage/feeds/handler.go
parent68b8088cb9730bfe0ee2395dd5506dc744076fc2 (diff)
downloadgo-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.gz
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.bz2
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.lz
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.xz
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.tar.zst
go-tangerine-58c0879c2fbc9f88f35ba503674088da23a8a5a7.zip
swarm/storage/feeds: removed capital Feed throughout
Diffstat (limited to 'swarm/storage/feeds/handler.go')
-rw-r--r--swarm/storage/feeds/handler.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/swarm/storage/feeds/handler.go b/swarm/storage/feeds/handler.go
index 9c69fd1b4..2c5261614 100644
--- a/swarm/storage/feeds/handler.go
+++ b/swarm/storage/feeds/handler.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
-// Handler is the API for Feeds
+// Handler is the API for feeds
// It enables creating, updating, syncing and retrieving feed updates and their data
package feeds
@@ -57,7 +57,7 @@ func init() {
}
}
-// NewHandler creates a new Swarm Feeds API
+// NewHandler creates a new Swarm feeds API
func NewHandler(params *HandlerParams) *Handler {
fh := &Handler{
cache: make(map[uint64]*cacheEntry),
@@ -74,7 +74,7 @@ func NewHandler(params *HandlerParams) *Handler {
return fh
}
-// SetStore sets the store backend for the Swarm Feeds API
+// SetStore sets the store backend for the Swarm feeds API
func (h *Handler) SetStore(store *storage.NetStore) {
h.chunkStore = store
}
@@ -110,7 +110,7 @@ func (h *Handler) Validate(chunkAddr storage.Address, data []byte) bool {
return true
}
-// GetContent retrieves the data payload of the last synced update of the Feed
+// GetContent retrieves the data payload of the last synced update of the feed
func (h *Handler) GetContent(feed *Feed) (storage.Address, []byte, error) {
if feed == nil {
return nil, nil, NewError(ErrInvalidValue, "feed is nil")
@@ -240,7 +240,7 @@ func (h *Handler) updateCache(request *Request) (*cacheEntry, error) {
}
// Update publishes a feed update
-// Note that a Feed update cannot span chunks, and thus has a MAX NET LENGTH 4096, INCLUDING update header data and signature.
+// Note that a feed update cannot span chunks, and thus has a MAX NET LENGTH 4096, INCLUDING update header data and signature.
// This results in a max payload of `maxUpdateDataLength` (check update.go for more details)
// An error will be returned if the total length of the chunk payload will exceed this limit.
// Update can only check if the caller is trying to overwrite the very last known version, otherwise it just puts the update
@@ -286,7 +286,7 @@ func (h *Handler) get(feed *Feed) *cacheEntry {
return feedUpdate
}
-// Sets the feed update cache value for the given Feed
+// Sets the feed update cache value for the given feed
func (h *Handler) set(feed *Feed, feedUpdate *cacheEntry) {
mapKey := feed.mapKey()
h.cacheLock.Lock()