Skip to content

Commit

Permalink
adjust to nject 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
muir committed Mar 15, 2022
1 parent 5b168bf commit 96756d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func GenerateDecoder(
for _, opt := range genOpts {
opt(&options)
}
return nject.GenerateFromInjectionChain(func(before nject.Collection, after nject.Collection) (nject.Provider, error) {
return nject.GenerateFromInjectionChain("GenerateDecoder", func(before nject.Collection, after nject.Collection) (nject.Provider, error) {
full := before.Append("after", after)
missingInputs, _ := full.DownFlows()
var providers []interface{}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/golang/gddo v0.0.0-20210115222349-20d68f94ee1f
github.com/gorilla/mux v1.8.0
github.com/muir/nape v0.2.1
github.com/muir/nject v0.2.0
github.com/muir/nject v0.3.0
github.com/muir/reflectutils v0.4.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.7.0
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ github.com/mitchellh/mapstructure v0.0.0-20170523030023-d0303fe80992/go.mod h1:F
github.com/muir/nape v0.2.0/go.mod h1:VjvP6gR5PzQ3yyOPjyGlFOxDFucMVhBkaJGT6c0CvsU=
github.com/muir/nape v0.2.1 h1:Yce3vLOW4umOMwFzvqYHfIKa3Ltx0Y6qiGcE8yFPkJA=
github.com/muir/nape v0.2.1/go.mod h1:FE26YLNvUZ7DQJVW34+ypho9cGTn0NccvXjMaDo1nTw=
github.com/muir/nject v0.2.0 h1:mChgYTDAAZTxHmC6x9aJGHbfYV0ZTZqhbsEIV8zpJys=
github.com/muir/nject v0.2.0/go.mod h1:vFJkDQciI0UURYI3cSZLyBhYxL3gn+4FvJBY9cZSsaA=
github.com/muir/nject v0.3.0 h1:j3b52hHZAQRT9GEn/q1drGBN9Z01qfXGpYg0z6K9v/c=
github.com/muir/nject v0.3.0/go.mod h1:vFJkDQciI0UURYI3cSZLyBhYxL3gn+4FvJBY9cZSsaA=
github.com/muir/nvelope v0.2.0/go.mod h1:raB9voDUnhMELiU2fZG7yHYdiRGKSh/FGtsjYWtdbpc=
github.com/muir/reflectutils v0.4.0 h1:1VXbXaav7tR5BTYTHcGTdOAyxu3idCzM5FCtCpgm2u4=
github.com/muir/reflectutils v0.4.0/go.mod h1:hyMWDtoeNsc1FTq9qlXsbwDzbwp3A3M8zbRNKDzvSmc=
Expand Down

0 comments on commit 96756d9

Please sign in to comment.