Skip to content

Commit

Permalink
Add missing inject of DecodeHooks
Browse files Browse the repository at this point in the history
'DecodeHooks' that config depends on wasn't passed from 'Options' into
the object container.

Signed-off-by: Jussi Maki <[email protected]>
  • Loading branch information
joamaki committed Feb 13, 2024
1 parent bd6ebb4 commit 0145150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ type defaults struct {
Shutdowner Shutdowner
InvokerList cell.InvokerList
EmptyFullModuleID cell.FullModuleID
DecodeHooks cell.DecodeHooks
}

func (h *Hive) provideDefaults() error {
Expand All @@ -181,6 +182,7 @@ func (h *Hive) provideDefaults() error {
Shutdowner: h,
InvokerList: h,
EmptyFullModuleID: nil,
DecodeHooks: h.opts.DecodeHooks,
}
})
}
Expand Down

0 comments on commit 0145150

Please sign in to comment.