Skip to content

Commit

Permalink
refactor: send config by value
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmaElsoly committed Jul 31, 2024
1 parent 6fc7f59 commit ab2feef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion farmerbot/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ var runCmd = &cobra.Command{
if err != nil {
return err
}
subConn, err := substrate.NewManager(internal.SubstrateURLs[network]...).Substrate()
manager := substrate.NewManager(internal.SubstrateURLs[network]...)
subConn, err := manager.Substrate()
if err != nil {
return err
}
Expand Down

0 comments on commit ab2feef

Please sign in to comment.