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_user_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_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go index e6054365c..4aa6f6cfe 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -33,7 +33,7 @@ const ( ) type SqlUserStore struct { - *SqlStore + SqlStore } var profilesInChannelCache *utils.Cache = utils.NewLru(PROFILES_IN_CHANNEL_CACHE_SIZE) @@ -48,7 +48,7 @@ func (us SqlUserStore) InvalidatProfileCacheForUser(userId string) { profileByIdsCache.Remove(userId) } -func NewSqlUserStore(sqlStore *SqlStore) UserStore { +func NewSqlUserStore(sqlStore SqlStore) UserStore { us := &SqlUserStore{sqlStore} for _, db := range sqlStore.GetAllConns() { |