@cryptotaxi247 / kubo / commits / ccd06e5b6

Fix ctx used in pub.Publish

License: MIT Signed-off-by: rht <rhtbot@gmail.com>

rht committed Aug 23, 2015 at 21:31 UTC ccd06e5b66621568f7b66d9867779eaef843a75f
1 file changed +1 -2
fuse/ipns/common.go
+1 -2
@@ -34,8 +34,7 @@ func InitializeKeyspace(n *core.IpfsNode, key ci.PrivKey) error {
34 }
35
36 pub := nsys.NewRoutingPublisher(n.Routing)
37 - err = pub.Publish(n.Context(), key, path.FromKey(nodek))
38 - if err != nil {
37 + if err := pub.Publish(ctx, key, path.FromKey(nodek)); err != nil {
38 return err
39 }
40