chore(core) add TODOs to use contexts
Brian Tiger Chow committed
Sep 14, 2014 at 05:46 UTC
6aecb8039523b1252ec49ebf4a54dee1a564ed46
1 file changed
+3
core/core.go
+3
@@ -95,11 +95,14 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
95
}
96
97
route = dht.NewDHT(local, net, d)
98
+ // TODO(brian): pass a context to DHT for its async operations
99
route.Start()
100
101
+ // TODO(brian): pass a context to bs for its async operations
102
swap = bitswap.NewBitSwap(local, net, d, route)
103
swap.SetStrategy(bitswap.YesManStrategy)
104
105
+ // TODO(brian): pass a context to initConnections
106
go initConnections(cfg, route)
107
}
108