swarm/storage/mru: Renamed all identifiers to Feeds
This commit is contained in:
@ -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 {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user