File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,6 @@ var (
107
107
type Manager interface {
108
108
ids.Aliaser
109
109
110
- // Return the router this Manager is using to route consensus messages to chains
111
- Router () router.Router
112
-
113
110
// Queues a chain to be created in the future after chain creator is unblocked.
114
111
// This is only called from the P-chain thread to create other chains
115
112
// Queued chains are created only after P-chain is bootstrapped.
@@ -278,11 +275,6 @@ func New(config *ManagerConfig) Manager {
278
275
}
279
276
}
280
277
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
-
286
278
// QueueChainCreation queues a chain creation request
287
279
// Invariant: Tracked Subnet must be checked before calling this function
288
280
func (m * manager ) QueueChainCreation (chainParams ChainParameters ) {
Original file line number Diff line number Diff line change 3
3
4
4
package chains
5
5
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"
10
7
11
8
// TestManager implements Manager but does nothing. Always returns nil error.
12
9
// To be used only in tests
13
10
var TestManager Manager = testManager {}
14
11
15
12
type testManager struct {}
16
13
17
- func (testManager ) Router () router.Router {
18
- return nil
19
- }
20
-
21
14
func (testManager ) QueueChainCreation (ChainParameters ) {}
22
15
23
16
func (testManager ) ForceCreateChain (ChainParameters ) {}
You can’t perform that action at this time.
0 commit comments