Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Aug 31, 2021
1 parent 773aef6 commit d733227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/adapter/gql/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func (l Loaders) OrdinaryDataLoaders(ctx context.Context) DataLoaders {

type dataLoadersKey struct{}

func DataLoadersFromContext(ctx context.Context) *DataLoaders {
return ctx.Value(dataLoadersKey{}).(*DataLoaders)
func DataLoadersFromContext(ctx context.Context) DataLoaders {
return ctx.Value(dataLoadersKey{}).(DataLoaders)
}

func DataLoadersKey() interface{} {
Expand Down

0 comments on commit d733227

Please sign in to comment.