Skip to content

Commit 6053373

Browse files
committed
remove getter for router on chain manager
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
1 parent 20452c3 commit 6053373

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

chains/manager.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ var (
107107
type Manager interface {
108108
ids.Aliaser
109109

110-
// Return the router this Manager is using to route consensus messages to chains
111-
Router() router.Router
112-
113110
// Queues a chain to be created in the future after chain creator is unblocked.
114111
// This is only called from the P-chain thread to create other chains
115112
// Queued chains are created only after P-chain is bootstrapped.
@@ -278,11 +275,6 @@ func New(config *ManagerConfig) Manager {
278275
}
279276
}
280277

281-
// Router that this chain manager is using to route consensus messages to chains
282-
func (m *manager) Router() router.Router {
283-
return m.ManagerConfig.Router
284-
}
285-
286278
// QueueChainCreation queues a chain creation request
287279
// Invariant: Tracked Subnet must be checked before calling this function
288280
func (m *manager) QueueChainCreation(chainParams ChainParameters) {

chains/test_manager.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,14 @@
33

44
package chains
55

6-
import (
7-
"github.com/ava-labs/avalanchego/ids"
8-
"github.com/ava-labs/avalanchego/snow/networking/router"
9-
)
6+
import "github.com/ava-labs/avalanchego/ids"
107

118
// TestManager implements Manager but does nothing. Always returns nil error.
129
// To be used only in tests
1310
var TestManager Manager = testManager{}
1411

1512
type testManager struct{}
1613

17-
func (testManager) Router() router.Router {
18-
return nil
19-
}
20-
2114
func (testManager) QueueChainCreation(ChainParameters) {}
2215

2316
func (testManager) ForceCreateChain(ChainParameters) {}

0 commit comments

Comments
 (0)