mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 16:07:42 +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)
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user