summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-08 20:38:01 -0700
committerWolfy-J <[email protected]>2018-07-08 20:38:01 -0700
commitdafe0c3f4877c25157b5df4ca69eb23df248ab7a (patch)
treec3796aea78bb489cb06fa5da846196a178fe5df9 /service
parent9f59155c781f0178e52c53abd2b437d40c51a52d (diff)
better error buffer
Diffstat (limited to 'service')
-rw-r--r--service/injector.go2
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