summaryrefslogtreecommitdiffstats
path: root/store/layered_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/layered_store.go')
-rw-r--r--store/layered_store.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/store/layered_store.go b/store/layered_store.go
index 84b3ab1f5..ac0713f57 100644
--- a/store/layered_store.go
+++ b/store/layered_store.go
@@ -7,6 +7,7 @@ import (
"context"
l4g "github.com/alecthomas/log4go"
+ "github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
)
@@ -26,8 +27,8 @@ type LayeredStore struct {
func NewLayeredStore() Store {
store := &LayeredStore{
TmpContext: context.TODO(),
- DatabaseLayer: NewSqlSupplier(),
- LocalCacheLayer: NewLocalCacheSupplier(),
+ DatabaseLayer: NewSqlSupplier(einterfaces.GetMetricsInterface()),
+ LocalCacheLayer: NewLocalCacheSupplier(einterfaces.GetMetricsInterface(), einterfaces.GetClusterInterface()),
}
store.ReactionStore = &LayeredReactionStore{store}