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:
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user