From 9659a6da06852ede9bf6b87c0e39a543e88a5034 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 27 Jun 2017 08:02:08 -0700 Subject: Stage 1 of caching layer. Framework (#6693) --- store/sql_post_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store/sql_post_store.go') diff --git a/store/sql_post_store.go b/store/sql_post_store.go index 388414cd9..6db2d5992 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -17,7 +17,7 @@ import ( ) type SqlPostStore struct { - *SqlStore + SqlStore } const ( @@ -36,7 +36,7 @@ func ClearPostCaches() { lastPostsCache.Purge() } -func NewSqlPostStore(sqlStore *SqlStore) PostStore { +func NewSqlPostStore(sqlStore SqlStore) PostStore { s := &SqlPostStore{sqlStore} for _, db := range sqlStore.GetAllConns() { -- cgit v1.2.3-1-g7c22