diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-21 04:13:34 -0500 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-09-21 10:13:34 +0100 |
commit | 266ff8670244da288aec937320d9eecc7996af35 (patch) | |
tree | 39e4e528cda0abb24be317683516ee246717fc68 /store/layered_store.go | |
parent | adab1a660fdc0c307238279edc7a9918d14577e5 (diff) | |
download | chat-266ff8670244da288aec937320d9eecc7996af35.tar.gz chat-266ff8670244da288aec937320d9eecc7996af35.tar.bz2 chat-266ff8670244da288aec937320d9eecc7996af35.zip |
remove more global refs (#7480)
Diffstat (limited to 'store/layered_store.go')
-rw-r--r-- | store/layered_store.go | 6 |
1 files changed, 3 insertions, 3 deletions
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} |