Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix Deprecated packages and swarm peers convert error #21

Merged
merged 8 commits into from
Jul 21, 2019
Merged

fix Deprecated packages and swarm peers convert error #21

merged 8 commits into from
Jul 21, 2019

Conversation

godcong
Copy link
Contributor

@godcong godcong commented Jul 18, 2019

  1. changed Deprecated packages to new packages
  2. fix swarm peers Latency convert error
  3. fixswarm peers address parse error

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Thanks

response.go Outdated
if e != nil {
return e
}
fmt.Println(string(b))
Copy link
Member

Choose a reason for hiding this comment

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

Probably didn't mean to check this patch in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i reverted it.
i'm sorry to patched it.
that's only my debug source.

swarm.go Outdated
@@ -98,7 +98,8 @@ func (api *SwarmAPI) Peers(ctx context.Context) ([]iface.ConnectionInfo, error)

out.addr, err = multiaddr.NewMultiaddr(conn.Addr)
if err != nil {
return nil, err
//ignore error for get some address like this:ip4/94.130.135.167/tcp/4002/ws/ipfs/QmUEMvxS2e7iDrereVYc5SWPauXPyNwxcy9BXZrC1QTcHE
Copy link
Member

Choose a reason for hiding this comment

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

We probably don't want to ignore this peer. Let's just not set the addr and document this. Relates to multiformats/multiaddr#70.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, This is better.

@Stebalien Stebalien merged commit fd5cce4 into ipfs:master Jul 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants