Skip to content

Commit

Permalink
Pusher engine refactor: remove unused collection metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-barry committed Nov 30, 2024
1 parent aad332c commit ad04f27
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion cmd/collection/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ func main() {
node.State,
node.Metrics.Engine,
node.Metrics.Mempool,
colMetrics,
node.Me,
node.Storage.Collections,
node.Storage.Transactions,
Expand Down
5 changes: 1 addition & 4 deletions engine/collection/pusher/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
type Engine struct {
log zerolog.Logger
engMetrics module.EngineMetrics
colMetrics module.CollectionMetrics
conduit network.Conduit
me module.Local
state protocol.State
Expand All @@ -56,7 +55,6 @@ func New(
state protocol.State,
engMetrics module.EngineMetrics,
mempoolMetrics module.MempoolMetrics,
colMetrics module.CollectionMetrics,
me module.Local,
collections storage.Collections,
transactions storage.Transactions,
Expand All @@ -76,7 +74,6 @@ func New(
e := &Engine{
log: log.With().Str("engine", "pusher").Logger(),
engMetrics: engMetrics,
colMetrics: colMetrics,
me: me,
state: state,
collections: collections,
Expand All @@ -100,7 +97,7 @@ func New(
return e, nil
}

// outboundQueueWorker implements a component worker which broadcasts collection guarantees,
// outboundQueueWorker implements a component worker which broadcasts collection guarantees,
// enqueued by the Finalizer upon finalization, to Consensus Nodes.
func (e *Engine) outboundQueueWorker(ctx irrecoverable.SignalerContext, ready component.ReadyFunc) {
ready()
Expand Down
1 change: 0 additions & 1 deletion engine/collection/pusher/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (suite *Suite) SetupTest() {
suite.state,
metrics,
metrics,
metrics,
suite.me,
suite.collections,
suite.transactions,
Expand Down
2 changes: 1 addition & 1 deletion engine/testutil/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func CollectionNode(t *testing.T, hub *stub.Hub, identity bootstrap.NodeInfo, ro
retrieve)
require.NoError(t, err)

pusherEngine, err := pusher.New(node.Log, node.Net, node.State, node.Metrics, node.Metrics, node.Metrics, node.Me, collections, transactions)
pusherEngine, err := pusher.New(node.Log, node.Net, node.State, node.Metrics, node.Metrics, node.Me, collections, transactions)
require.NoError(t, err)

clusterStateFactory, err := factories.NewClusterStateFactory(
Expand Down

0 comments on commit ad04f27

Please sign in to comment.