diff options
author | Wolfy-J <[email protected]> | 2018-07-08 20:38:01 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 20:38:01 -0700 |
commit | dafe0c3f4877c25157b5df4ca69eb23df248ab7a (patch) | |
tree | c3796aea78bb489cb06fa5da846196a178fe5df9 /service | |
parent | 9f59155c781f0178e52c53abd2b437d40c51a52d (diff) |
better error buffer
Diffstat (limited to 'service')
-rw-r--r-- | service/injector.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/injector.go b/service/injector.go index e7dfaa0b..2d18b651 100644 --- a/service/injector.go +++ b/service/injector.go @@ -77,7 +77,7 @@ func injectValues(m reflect.Method, s interface{}, cfg Config, c *container) (va // looking for the service candidate for _, e := range c.services { - if v.ConvertibleTo(reflect.ValueOf(e.svc).Type()) { + if v.ConvertibleTo(reflect.ValueOf(e.svc).Type()) && e.hasStatus(StatusOK) { found = true values = append(values, reflect.ValueOf(e.svc)) break |