Skip to content
Snippets Groups Projects
Commit ccd06e5b authored by rht's avatar rht
Browse files

Fix ctx used in pub.Publish


License: MIT
Signed-off-by: default avatarrht <rhtbot@gmail.com>
parent dc215357
Branches
No related tags found
1 merge request!1New
...@@ -34,8 +34,7 @@ func InitializeKeyspace(n *core.IpfsNode, key ci.PrivKey) error { ...@@ -34,8 +34,7 @@ func InitializeKeyspace(n *core.IpfsNode, key ci.PrivKey) error {
} }
pub := nsys.NewRoutingPublisher(n.Routing) pub := nsys.NewRoutingPublisher(n.Routing)
err = pub.Publish(n.Context(), key, path.FromKey(nodek)) if err := pub.Publish(ctx, key, path.FromKey(nodek)); err != nil {
if err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment