summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-08 00:01:03 +0300
committerWolfy-J <[email protected]>2018-09-08 00:01:03 +0300
commitfc7f7f7ac17ef0838bbdfd578b4e17821b287aee (patch)
tree71395ed820d9e685baec2875dc68176814834243 /service/container.go
parentbf086da11191848ef3a74602d4c652034357e972 (diff)
added support for logger in DI
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/container.go b/service/container.go
index b6840375..1716b965 100644
--- a/service/container.go
+++ b/service/container.go
@@ -213,7 +213,7 @@ func (c *container) Stop() {
func (c *container) initService(s interface{}, segment Config) (bool, error) {
r := reflect.TypeOf(s)
- m, ok := r.MethodByName("Init")
+ m, ok := r.MethodByName(InitMethod)
if !ok {
// no Init method is presented, assuming service does not need initialization.
return true, nil