From f1e86ad9cf0470051b7106ee83794d27276b528d Mon Sep 17 00:00:00 2001 From: Javier Peletier Date: Sat, 29 Sep 2018 01:00:28 +0200 Subject: swarm/storage/mru: Renamed all identifiers to Feeds --- cmd/swarm/mru.go | 4 ++-- cmd/swarm/mru_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd') 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 . -// 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 -- cgit v1.2.3