aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm
diff options
context:
space:
mode:
authorJavier Peletier <jm@epiclabs.io>2018-09-29 07:00:28 +0800
committerJavier Peletier <jm@epiclabs.io>2018-10-03 15:12:06 +0800
commitf1e86ad9cf0470051b7106ee83794d27276b528d (patch)
tree4a11bd2816200bac0a0e24a3b3c5c79db84e2bf4 /cmd/swarm
parentbd1f7ebda27d57002b6a04a95812420a40117b3a (diff)
downloaddexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.gz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.bz2
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.lz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.xz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.zst
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.zip
swarm/storage/mru: Renamed all identifiers to Feeds
Diffstat (limited to 'cmd/swarm')
-rw-r--r--cmd/swarm/mru.go4
-rw-r--r--cmd/swarm/mru_test.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/swarm/mru.go b/cmd/swarm/mru.go
index cc7f634cb..afa73820f 100644
--- a/cmd/swarm/mru.go
+++ b/cmd/swarm/mru.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
-// Command resource allows the user to create and update signed mutable resource updates
+// Command resource allows the user to create and update signed Swarm Feeds
package main
import (
@@ -66,7 +66,7 @@ func resourceCreate(ctx *cli.Context) {
)
newResourceRequest := mru.NewFirstRequest(getTopic(ctx))
- newResourceRequest.View.User = resourceGetUser(ctx)
+ newResourceRequest.Feed.User = resourceGetUser(ctx)
manifestAddress, err := client.CreateResource(newResourceRequest)
if err != nil {
diff --git a/cmd/swarm/mru_test.go b/cmd/swarm/mru_test.go
index 142cf9cfd..c52097a6e 100644
--- a/cmd/swarm/mru_test.go
+++ b/cmd/swarm/mru_test.go
@@ -101,7 +101,7 @@ func TestCLIResourceUpdate(t *testing.T) {
}
// View configures whose updates we will be looking up.
- view := mru.View{
+ view := mru.Feed{
Topic: topic,
User: address,
}
@@ -146,8 +146,8 @@ func TestCLIResourceUpdate(t *testing.T) {
}
// make sure the retrieved view is the same
- if request.View != view {
- t.Fatalf("Expected view to be: %s, got %s", view, request.View)
+ if request.Feed != view {
+ t.Fatalf("Expected view to be: %s, got %s", view, request.Feed)
}
// test publishing a manifest