1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00

Fix ctx used in pub.Publish

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-08-23 21:31:21 +07:00
parent dc2153574c
commit ccd06e5b66

View File

@ -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
} }