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_file_info_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_file_info_store.go')
-rw-r--r-- | store/sql_file_info_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go index bd0362db0..3fe62121c 100644 --- a/store/sql_file_info_store.go +++ b/store/sql_file_info_store.go @@ -12,7 +12,7 @@ import ( ) type SqlFileInfoStore struct { - *SqlStore + SqlStore } const ( @@ -26,7 +26,7 @@ func ClearFileCaches() { fileInfoCache.Purge() } -func NewSqlFileInfoStore(sqlStore *SqlStore) FileInfoStore { +func NewSqlFileInfoStore(sqlStore SqlStore) FileInfoStore { s := &SqlFileInfoStore{sqlStore} for _, db := range sqlStore.GetAllConns() { |