Skip to content

Commit

Permalink
More details to a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Samylkin committed Feb 21, 2017
1 parent 8bc5fb6 commit 00f640e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions modules/rpc/thrift_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ modules:
inbounds:
- tchannel:
port: 0
- http:
port: 0
`)

mci := service.ModuleCreateInfo{
Expand All @@ -116,7 +114,7 @@ modules:
// Dispatcher must be resolved in the new graph
var dispatcher *yarpc.Dispatcher
assert.NoError(t, di.Resolve(&dispatcher))
assert.Equal(t, 2, len(dispatcher.Inbounds()))
assert.Equal(t, 1, len(dispatcher.Inbounds()))
}

func TestThriftModule_BadOptions(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion modules/rpc/yarpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ func newYARPCModule(
di := graphFromCreateInfo(mi)

// Try to resolve a controller first
// TODO(alsam) use dig options when available.
// TODO(alsam) use dig options when available, because we can overwrite the controller in case of multiple
// modules registering a controller.
if err := di.Resolve(&module.controller); err != nil {

// Try to register it then
Expand Down

0 comments on commit 00f640e

Please sign in to comment.