Skip to content

Commit

Permalink
fixed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raskle committed Apr 24, 2017
1 parent 1dc5d6f commit 445023a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// package server contains the `pilosa server` subcommand which runs Pilosa
// Package server contains the `pilosa server` subcommand which runs Pilosa
// itself. The purpose of this package is to define an easily tested Command
// object which handles interpreting configuration and setting up all the
// objects that Pilosa needs.
Expand Down Expand Up @@ -50,7 +50,7 @@ type Command struct {
Done chan struct{}
}

// NewMain returns a new instance of Main.
// NewCommand returns a new instance of Main.
func NewCommand(stdin io.Reader, stdout, stderr io.Writer) *Command {
return &Command{
Server: pilosa.NewServer(),
Expand Down Expand Up @@ -89,6 +89,7 @@ func (m *Command) Run(args ...string) (err error) {
return nil
}

// SetupServer use the cluster configuration to setup this server
func (m *Command) SetupServer() error {
cluster := pilosa.NewCluster()
cluster.ReplicaN = m.Config.Cluster.ReplicaN
Expand Down Expand Up @@ -168,7 +169,7 @@ func (m *Command) SetupServer() error {
return err
}
default:
return fmt.Errorf("'%v' is not a supported value for broadcaster type.", m.Config.Cluster.Type)
return fmt.Errorf("'%v' is not a supported value for broadcaster type", m.Config.Cluster.Type)
}

// Set configuration options.
Expand Down

0 comments on commit 445023a

Please sign in to comment.