diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-02 15:45:14 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-02 15:45:14 +0200 |
commit | 90a45b4c0979dd744aa5a28c84ececf243f027d2 (patch) | |
tree | bc2bea4bd1452b00685a7ad967027f78e626eba7 /graphql/resolvers/root.go | |
parent | 6ff02ed84254275f2d19569a1a5f14efc1d47f31 (diff) | |
download | git-bug-90a45b4c0979dd744aa5a28c84ececf243f027d2.tar.gz git-bug-90a45b4c0979dd744aa5a28c84ececf243f027d2.zip |
cache: rename RootCache into MultiRepoCache
Underline the fact that it's fine to use RepoCache alone
Diffstat (limited to 'graphql/resolvers/root.go')
-rw-r--r-- | graphql/resolvers/root.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphql/resolvers/root.go b/graphql/resolvers/root.go index 767e82d2..1003f7f1 100644 --- a/graphql/resolvers/root.go +++ b/graphql/resolvers/root.go @@ -6,24 +6,24 @@ import ( ) type RootResolver struct { - cache.RootCache + cache.MultiRepoCache } func NewRootResolver() *RootResolver { return &RootResolver{ - RootCache: cache.NewCache(), + MultiRepoCache: cache.NewMultiRepoCache(), } } func (r RootResolver) Query() graph.QueryResolver { return &rootQueryResolver{ - cache: &r.RootCache, + cache: &r.MultiRepoCache, } } func (r RootResolver) Mutation() graph.MutationResolver { return &mutationResolver{ - cache: &r.RootCache, + cache: &r.MultiRepoCache, } } |