diff --git a/examples/libp2p-host/README.md b/examples/libp2p-host/README.md index ba59b7d4bd7ec520b07be4d399d2df33963c99cb..1edee72cb284bd1625e91021fb44d5e337d44c14 100644 --- a/examples/libp2p-host/README.md +++ b/examples/libp2p-host/README.md @@ -59,7 +59,7 @@ import ( ctx := context.Background() // Put all this together -netw, err := swarm.NewNetwork(ctx, []ma.Multiaddr{maddr}, ident.ID(), ps, nil) +netw, err := swarm.NewNetwork(ctx, []ma.Multiaddr{maddr}, pid, ps, nil) if err != nil { panic(err) }