diff options
Diffstat (limited to 'graphql/resolvers')
-rw-r--r-- | graphql/resolvers/mutation.go | 4 | ||||
-rw-r--r-- | graphql/resolvers/query.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/graphql/resolvers/mutation.go b/graphql/resolvers/mutation.go index 2a81716c..9c5a589d 100644 --- a/graphql/resolvers/mutation.go +++ b/graphql/resolvers/mutation.go @@ -9,10 +9,10 @@ import ( ) type mutationResolver struct { - cache cache.Cacher + cache *cache.RootCache } -func (r mutationResolver) getRepo(repoRef *string) (cache.RepoCacher, error) { +func (r mutationResolver) getRepo(repoRef *string) (*cache.RepoCache, error) { if repoRef != nil { return r.cache.ResolveRepo(*repoRef) } diff --git a/graphql/resolvers/query.go b/graphql/resolvers/query.go index 4154964f..0e7f3a6f 100644 --- a/graphql/resolvers/query.go +++ b/graphql/resolvers/query.go @@ -8,7 +8,7 @@ import ( ) type rootQueryResolver struct { - cache cache.Cacher + cache *cache.RootCache } func (r rootQueryResolver) DefaultRepository(ctx context.Context) (*models.Repository, error) { |