From b6fb98a43176215f16fc52b64abebde51355e5c1 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 14 Sep 2017 12:01:44 -0500 Subject: remove more global references (#7442) --- store/layered_store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'store/layered_store.go') 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} -- cgit v1.2.3-1-g7c22