Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
api, cmd: fixes after rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Sep 26, 2019
1 parent 552d3fe commit b872629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ func TestClientQueryTagByHash(t *testing.T) {

// check the tag was created successfully
tag := srv.Tags.All()[0]
chunktesting.CheckTag(t, tag, 1, 1, 0, 1)
chunktesting.CheckTag(t, tag, 1, 1, 0, 1, 0, 1)

// check that the tag we got back from the API is also correct
chunktesting.CheckTag(t, tagg, 1, 1, 0, 1)
chunktesting.CheckTag(t, tagg, 1, 1, 0, 1, 0, 1)
}

func newTestSigner() (*feed.GenericSigner, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/swarm/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func pollTag(client *client.Client, tag *chunk.Tag, bars map[string]*mpb.Bar) {
oldTag := *tag
lastTime := time.Now()

for _ := range time.After(pollDelay) {
for range time.After(pollDelay) {
newTag, err := client.TagByHash(tag.Address.String())
if err != nil {
utils.Fatalf("had an error polling the tag for address %s, err %v", tag.Address.String(), err)
Expand Down

0 comments on commit b872629

Please sign in to comment.