From c1784f5beb6e1cea7ef67bc4d94a88cf67f05012 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Fri, 10 Nov 2023 21:30:19 +0100 Subject: [PATCH] chore: simplify --- pkg/relayer/miner/miner.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/relayer/miner/miner.go b/pkg/relayer/miner/miner.go index 19309aea1..79d905ac7 100644 --- a/pkg/relayer/miner/miner.go +++ b/pkg/relayer/miner/miner.go @@ -5,8 +5,6 @@ import ( "crypto/sha256" "hash" - "cosmossdk.io/depinject" - "github.com/pokt-network/poktroll/pkg/either" "github.com/pokt-network/poktroll/pkg/observable" "github.com/pokt-network/poktroll/pkg/observable/channel" @@ -38,27 +36,15 @@ type miner struct { // relayDifficulty is the minimum difficulty that a relay must have to be // volume / reward applicable. relayDifficulty int - - // Injected dependencies - // sessionManaager facilitates the session (claim/proof) lifecycle. - sessionManager relayer.RelayerSessionsManager } // NewMiner creates a new miner from the given dependencies and options. It // returns an error if it has not been sufficiently configured or supplied. func NewMiner( - deps depinject.Config, opts ...relayer.MinerOption, ) (*miner, error) { mnr := &miner{} - if err := depinject.Inject( - deps, - &mnr.sessionManager, - ); err != nil { - return nil, err - } - for _, opt := range opts { opt(mnr) }