diff options
Diffstat (limited to 'cmd/swarm')
-rw-r--r-- | cmd/swarm/mru.go | 4 | ||||
-rw-r--r-- | cmd/swarm/mru_test.go | 6 |
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 |