Skip to content

Commit

Permalink
chore(core) add TODOs to use contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Tiger Chow committed Sep 18, 2014
1 parent 01b771e commit 5f52d75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5f52d75

Please sign in to comment.