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

cmd/swarm: fix progress bars for encrypted uploads #1853

Merged
merged 3 commits into from
Oct 3, 2019
Merged

cmd/swarm: fix progress bars for encrypted uploads #1853

merged 3 commits into from
Oct 3, 2019

Conversation

acud
Copy link
Member

@acud acud commented Oct 2, 2019

Fixes progress bars for encrypted uploads

@acud acud added this to the 0.5.1 milestone Oct 2, 2019
@acud acud self-assigned this Oct 2, 2019
@acud acud changed the title cmd/swarm: fix check for encrypted hashes cmd/swarm: fix bars for encrypted uploads Oct 2, 2019
@acud acud changed the title cmd/swarm: fix bars for encrypted uploads cmd/swarm: fix progress bars for encrypted uploads Oct 2, 2019
oldTag := *tag
lastTime := time.Now()

for {
time.Sleep(pollDelay)
newTag, err := client.TagByHash(tag.Address.String())
newTag, err := client.TagByHash(hash)
if err != nil {
utils.Fatalf("had an error polling the tag for address %s, err %v", tag.Address.String(), err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be hash, instead of tag.Address.String()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's exactly what it is... not sure if i follow....

Copy link
Contributor

@nonsense nonsense Oct 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If tag.Address.String() was the same as hash, this change would not be needed. I am talking about line 219 (old) line 221 (new), already pushed the change.

@nonsense nonsense merged commit be73e52 into master Oct 3, 2019
@acud acud deleted the tgz2 branch October 3, 2019 09:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants