Skip to content

Commit

Permalink
microceph/cmd/microceph: Misc formatting
Browse files Browse the repository at this point in the history
formatted with goimports and gofmt

Signed-off-by: Max Asnaashari <[email protected]>
  • Loading branch information
masnax committed Jun 12, 2024
1 parent 20eca32 commit 9784bbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion microceph/cmd/microceph/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *cmdLogGetLevel) Command() *cobra.Command {
cmd := &cobra.Command{
Use: "get-level",
Short: "Get the current log level, as an integer",
RunE: c.Run,
RunE: c.Run,
}

return cmd
Expand Down
8 changes: 4 additions & 4 deletions microceph/cmd/microceph/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type cmdPool struct {
type cmdPoolSetRF struct {
common *CmdControl
poolRF *cmdPool
poolSize int64
poolSize int64
}

func (c *cmdPoolSetRF) Command() *cobra.Command {
Expand All @@ -32,14 +32,14 @@ func (c *cmdPoolSetRF) Command() *cobra.Command {
RunE: c.Run,
}

cmd.Flags().Int64Var(&c.poolSize, "size", 3, "Pool size")
cmd.MarkFlagRequired("size")
cmd.Flags().Int64Var(&c.poolSize, "size", 3, "Pool size")
cmd.MarkFlagRequired("size")

return cmd
}

func (c *cmdPoolSetRF) Run(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
if len(args) < 1 {
return cmd.Help()
}

Expand Down

0 comments on commit 9784bbf

Please sign in to comment.