1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +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)
err = pub.Publish(n.Context(), key, path.FromKey(nodek))
if err != nil {
if err := pub.Publish(ctx, key, path.FromKey(nodek)); err != nil {
return err
}