Skip to content

Commit

Permalink
compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Oct 19, 2023
1 parent a5c2ba7 commit e53cda4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions local/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func NewNetworkFromSnapshot(
subnetConfigs map[string]string,
flags map[string]interface{},
reassignPortsIfUsed bool,
redirectStdout bool,
redirectStderr bool,
) (network.Network, error) {
net, err := newNetwork(
log,
Expand All @@ -83,6 +85,8 @@ func NewNetworkFromSnapshot(
rootDir,
snapshotsDir,
reassignPortsIfUsed,
redirectStdout,
redirectStderr,
)
if err != nil {
return net, err
Expand Down
4 changes: 3 additions & 1 deletion server/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (lc *localNetwork) Start(ctx context.Context) error {
}

ux.Print(lc.log, logging.Blue.Wrap(logging.Bold.Wrap("create and run local network")))
nw, err := local.NewNetwork(lc.log, lc.cfg, lc.options.rootDataDir, lc.options.snapshotsDir, lc.options.reassignPortsIfUsed)
nw, err := local.NewNetwork(lc.log, lc.cfg, lc.options.rootDataDir, lc.options.snapshotsDir, lc.options.reassignPortsIfUsed, lc.options.redirectNodesOutput, lc.options.redirectNodesOutput)
if err != nil {
return err
}
Expand Down Expand Up @@ -519,6 +519,8 @@ func (lc *localNetwork) LoadSnapshot(snapshotName string) error {
lc.options.subnetConfigs,
globalNodeConfig,
lc.options.reassignPortsIfUsed,
lc.options.redirectNodesOutput,
lc.options.redirectNodesOutput,
)
if err != nil {
return err
Expand Down

0 comments on commit e53cda4

Please sign in to comment.