Commit 6aecb803 authored by Brian Tiger Chow's avatar Brian Tiger Chow

chore(core) add TODOs to use contexts

parent 0d3b0f10
......@@ -95,11 +95,14 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
}
route = dht.NewDHT(local, net, d)
// TODO(brian): pass a context to DHT for its async operations
route.Start()
// TODO(brian): pass a context to bs for its async operations
swap = bitswap.NewBitSwap(local, net, d, route)
swap.SetStrategy(bitswap.YesManStrategy)
// TODO(brian): pass a context to initConnections
go initConnections(cfg, route)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment