Skip to content

Commit

Permalink
Reduce memory footprint of startFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed May 5, 2024
1 parent 4a27953 commit 6212693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Execute() {
}
}

err := kanaSite.New(cmd, commandsRequiringSite, startFlags, flagVerbose, consoleOutput, Version)
err := kanaSite.New(cmd, commandsRequiringSite, &startFlags, flagVerbose, consoleOutput, Version)
if err != nil {
consoleOutput.Error(err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/site/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (s *Site) IsSiteRunning() bool {
func (s *Site) New(
cmd *cobra.Command,
commandsRequiringSite []string,
startFlags settings.StartFlags,
startFlags *settings.StartFlags,
flagVerbose bool,
consoleOutput *console.Console,
version string) error {
Expand Down

0 comments on commit 6212693

Please sign in to comment.