Remove long query time from Server. That parameter is managed in the Cluster.

This commit is contained in:
Michael Baird 2017-05-30 12:55:45 -05:00
parent 59f26ce585
commit f822bb43e9
3 changed files with 1 additions and 5 deletions

View file

@ -32,7 +32,7 @@ import (
// Server is global so that tests can control and verify it.
var Server *server.Command
// NewServeCmd create a pilosa server and run it with command line flags
// NewServeCmd creates a pilosa server and runs it with command line flags.
func NewServeCmd(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command {
Server = server.NewCommand(stdin, stdout, stderr)
serveCmd := &cobra.Command{

View file

@ -64,9 +64,6 @@ type Server struct {
PollingInterval time.Duration
MetricInterval time.Duration
// Threshold for logging long queries
LongQueryTime time.Duration
// Misc options.
MaxWritesPerRequest int

View file

@ -198,7 +198,6 @@ func (m *Command) SetupServer() error {
// Set configuration options.
m.Server.AntiEntropyInterval = time.Duration(m.Config.AntiEntropy.Interval)
m.Server.Cluster.LongQueryTime = time.Duration(m.Config.Cluster.LongQueryTime)
return nil
}