diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-06-27 08:02:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-27 08:02:08 -0700 |
commit | 9659a6da06852ede9bf6b87c0e39a543e88a5034 (patch) | |
tree | 56408b6104465af171a03f6a7eeb0b01099ab5e4 /store/sql_reaction_store.go | |
parent | 28bf900205c71259369f9a05b349786a39084f5d (diff) | |
download | chat-9659a6da06852ede9bf6b87c0e39a543e88a5034.tar.gz chat-9659a6da06852ede9bf6b87c0e39a543e88a5034.tar.bz2 chat-9659a6da06852ede9bf6b87c0e39a543e88a5034.zip |
Stage 1 of caching layer. Framework (#6693)
Diffstat (limited to 'store/sql_reaction_store.go')
-rw-r--r-- | store/sql_reaction_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_reaction_store.go b/store/sql_reaction_store.go index 1b927c106..87845421e 100644 --- a/store/sql_reaction_store.go +++ b/store/sql_reaction_store.go @@ -20,10 +20,10 @@ const ( var reactionCache *utils.Cache = utils.NewLru(REACTION_CACHE_SIZE) type SqlReactionStore struct { - *SqlStore + SqlStore } -func NewSqlReactionStore(sqlStore *SqlStore) ReactionStore { +func NewSqlReactionStore(sqlStore SqlStore) ReactionStore { s := &SqlReactionStore{sqlStore} for _, db := range sqlStore.GetAllConns() { |