aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/handler.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-27 01:58:38 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-27 01:58:38 +0200
commit932743ac066e8c6d76cbfc1710b0d55a78dced55 (patch)
tree5c2dbb249258683ac48e12a903bbf027665d3b03 /graphql/handler.go
parenteb26dd8d743ab8a1c170d867597bdc604bee6a25 (diff)
downloadgit-bug-932743ac066e8c6d76cbfc1710b0d55a78dced55.tar.gz
follow go naming convention
Diffstat (limited to 'graphql/handler.go')
-rw-r--r--graphql/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphql/handler.go b/graphql/handler.go
index 89ef3801..0f2aaad8 100644
--- a/graphql/handler.go
+++ b/graphql/handler.go
@@ -11,7 +11,7 @@ import (
type Handler struct {
handler *graphqlHandler.Handler
- cache cache.Cache
+ cache cache.Cacher
}
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@@ -32,7 +32,7 @@ func NewHandler(repo repository.Repo) (*Handler, error) {
GraphiQL: true,
})
- c := cache.NewDefaultCache()
+ c := cache.NewCache()
c.RegisterDefaultRepository(repo)
return &Handler{