Skip to content

Commit

Permalink
style: libp2p new
Browse files Browse the repository at this point in the history
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
  • Loading branch information
swift-mx and magik6k authored Jun 2, 2022
1 parent e691efb commit 0fd74ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/lotus-shed/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ var helloCmd = &cli.Command{
if err != nil {
return err
}
priv, _, err := crypto.GenerateKeyPair(crypto.RSA, 2048)
if err != nil {
return err
}
h, err := libp2p.New(libp2p.Identity(priv))
h, err := libp2p.New()
if err != nil {
return err
}
Expand Down

0 comments on commit 0fd74ed

Please sign in to comment.