From 266ff8670244da288aec937320d9eecc7996af35 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 21 Sep 2017 04:13:34 -0500 Subject: remove more global refs (#7480) --- store/layered_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'store/layered_store.go') diff --git a/store/layered_store.go b/store/layered_store.go index 0c6a01125..64107288c 100644 --- a/store/layered_store.go +++ b/store/layered_store.go @@ -24,11 +24,11 @@ type LayeredStore struct { LayerChainHead LayeredStoreSupplier } -func NewLayeredStore() Store { +func NewLayeredStore(metrics einterfaces.MetricsInterface, cluster einterfaces.ClusterInterface) Store { store := &LayeredStore{ TmpContext: context.TODO(), - DatabaseLayer: NewSqlSupplier(einterfaces.GetMetricsInterface()), - LocalCacheLayer: NewLocalCacheSupplier(einterfaces.GetMetricsInterface(), einterfaces.GetClusterInterface()), + DatabaseLayer: NewSqlSupplier(metrics), + LocalCacheLayer: NewLocalCacheSupplier(metrics, cluster), } store.ReactionStore = &LayeredReactionStore{store} -- cgit v1.2.3-1-g7c22